On Nov 29, 6:06 am, Sumedh <[EMAIL PROTECTED]> wrote:

> When one changes some code on live site...there might be some changes
> in files that get cached (like images and CSS and JS)...
>
> How can one make the browsers reload these new items after the build?

One way is to add a query string when you load CSS and JS files in you
templates, i.e.:

<link href="<?php echo "/css/default.css?v".date('dmY') ?>"
media="screen,print" rel="stylesheet" title="Default Text" type="text/
css"/>

or:

<script type="text/javascript" src="<?php echo "/js/homepage.js?v".date
('dmY') ?>"></script>

You can put this in your layout file if these are global resources.


--


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to