Using a query string to version a resource is considered a little bit
suboptimal as some proxies may not cache it all...
http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
Cheers,
Ric
On Sep 5, 2011, at 6:11 AM, Vlad K. wrote:
>
> I take latest SVN revision number from local .svn dir entries automatically
> upon application start, put it in settings, and use that, for instance as:
>
> example.com/static/js/foobar.js?rev=${settings["svn_revision"]}
>
> I use global revision number, but it is possible to monitor the rev of only
> specific files. I am sure the same can be used with cvs, git, mercurial
> etc... This works automatically since I checkout from svn directly into
> production for practical reasons. Otherwise I'd have to put some kind of
> revision or version number manually in config, but the principle is overall
> the same.
>
> .oO V Oo.
>
>
> On 09/05/2011 11:35 AM, Stéphane Klein wrote:
>> Hi,
>>
>> in Pylons 1.0 or Pyramid, what is your better javascript cache invalidation
>> solution ?
>>
>> Use some url like example.com/0.18.1dev2/js/foobar.js
>> that is append version number in url path ?
>>
>> Do you use others solutions ?
>>
>> Thanks for your comments.
>> Stephane
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" 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/pylons-discuss?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.