Hi,
This is driving me nuts. I am updating some js and css files and in my
browser I am still seeing the old files, how can I force my browser or
Nginx to send the new ones?
Thanks.
Hi,
This is driving me nuts. I am updating some js and css files and in my
browser I am still seeing the old files, how can I force my browser or
Nginx to send the new ones?
Thanks.
Kevin W.
Replace CTRL with APPLE on Macsen, and there are ways with various
browsers to turn off caching (web developer toolbar in firefox).
Another technique is to simply symlink file.js to versioned files like
file.js.123456789 this way if you need to ensure you get the latest
copy, you just point to it directly (rather than with the symlink).
– Merlin
On Wed, Jun 10, 2009 at 10:29 AM, Kevin
On Wed, 2009-06-10 at 16:33 -0700, merlin corey wrote:
Replace CTRL with APPLE on Macsen, and there are ways with various
browsers to turn off caching (web developer toolbar in firefox).
Another technique is to simply symlink file.js to versioned files like
file.js.123456789 this way if you need to ensure you get the latest
copy, you just point to it directly (rather than with the symlink).
Or just request the file with a serialized query string (aka
cache-busting):
file.js?id=123456789
Personally I use FF and the Web D. extension to disable caching
in my browser when I’m developing to avoid these sort of issues. It’s
by far the simplest solution:
Cliff
Personally I use FF and the Web D. extension to disable caching
in my browser when I’m developing to avoid these sort of issues. It’s
by far the simplest solution:
Gosh! I have it installed and didn’t even thing about this option for
myself. Thank you.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs