Hi folks,

 

So I’ve got this app built on prototype, with a bunch of extra JS classes to do what we want.  Now the problem is, when I make a change to one of those JS files (or an upgrade to prototype itself), how do I ensure that the client browsers refresh their cache with the latest JS?

 

Clearly I want the browse to cache the large JS files, but I also want that cache to expire at some point, or I want to be able to force a re-fetch of all the scripts/css referred to (the equivalent of a shift-reload).

 

This must be a solved problem, but I didn’t see the solution anywhere… do I stick something in the http header of the JS file?

 

Thanks for any assistance,

 

Rahul

 

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to