Hey Sid,

not the very same method, but using the sfCombinePlugin (there's
others as well) you can use a hashed request for the stylesheet that
allows you to longterm browser-cache the file. When you want to force
a reload, you increase a version number, and the hash updates.
CSS delivery is handled by a dynamic module in this case, but it uses
symfony's native caching to minimize overhead (no mod rewrite trickery
as of now, but works with superfast caching plugin as far as I know).

Hope this helps,

Daniel



On Jul 5, 3:24 pm, Sid Bachtiar <sid.bacht...@gmail.com> wrote:
> Hi all,
>
> Anyone got any idea if this can be made a plugin in Symfony?
>
> http://www.electrictoolbox.com/force-reload-css-javascript-unique-fil...
>
> Basically appends timestamp on the css and js files, for example
> main.css becomes main.20090606121212.css but this actually refers to
> main.css (using mod rewrite).
>
> So browser sees "main.20090606121212.css" but the file is actually "main.css".
>
> I guess in order to create such plugin, there must be a way to
> overwrite/intercept the templates css and js and change the file
> names?
>
> Kind regards,
>
> Sid
> --
> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to