symfony/AsseticBundle — Issue #33: Apache mod_expires override
Author: dtee
Created: 2011-10-09 20:11:10+00:00
State: open

AsseticController->render() does not set expire time, so apache mod_expire wins out and sets expire time. Because AsseticController is mainly for dev env, we should set Expires to now() so that browser would refresh the asset correctly.

$response->setExpires(new \DateTime());