Remi Jolin - SysGroup schrieb:
> le 16.02.2008 03:01 James Brady a écrit:
>> Hi, I'm researching the best way for me to dynamically add version
>> numbers to requested static files.
>>   
> what about adding the version number (or the update date) as a parameter 
> of the URL like
> http://server/filename.xxxx?upd=200802161328 (or any format of the 
> update date you can get with the os library)
> So browsers will refresh the cache only if the parameter changes.

There's a recipe on the docs Wiki on how to do that automatically by 
wrapping static resources in a widget, which adds the timestamp to the 
URL, here:

http://docs.turbogears.org/1.0/WidgetsWithJSAndCSS#controlling-caching-of-css-javascript-files

Tiny URL: http://tinyurl.com/33xpxs


Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to