Welcome! Log In Create A New Profile

Advanced

Re: Stop nginx from caching asset

June 10, 2009 08:20PM
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 Developer extension to disable caching
in my browser when I'm developing to avoid these sort of issues. It's
by far the simplest solution:

https://addons.mozilla.org/en-US/firefox/addon/60


Cliff

>
> -- Merlin
>
> On Wed, Jun 10, 2009 at 10:29 AM, Kevin
> Worthington<kworthington@gmail.com> wrote:
> > To force your browser to not load from its cache, use either Shift +
> > click the refresh button (or F5) -OR- Ctrl + click the refresh button
> > (or F5)
> > --
> > Kevin Worthington
> >
> >
> >
> >
> > On Wed, Jun 10, 2009 at 7:09 AM, Fernando Perez<lists@ruby-forum.com> wrote:
> >> 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.
> >> --
> >> Posted via http://www.ruby-forum.com/.
> >>
> >>
> >
> >
>
--
http://www.google.com/search?q=vonage+sucks
Subject Author Posted

Stop nginx from caching asset

Fernando Perez June 10, 2009 01:09PM

Re: Stop nginx from caching asset

Kevin Worthington June 10, 2009 01:29PM

Re: Stop nginx from caching asset

merlin corey June 10, 2009 07:33PM

Re: Stop nginx from caching asset

Cliff Wells June 10, 2009 08:20PM

Re: Stop nginx from caching asset

Fernando Perez June 11, 2009 02:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready