...oops, this should be obvious, but replace the ? with a "&c=" (or something) if your url already contains other parameters... you'll figure that part out I'm sure...

On 8/9/06, Ryan Gahl <[EMAIL PROTECTED]> wrote:
One sure fire way to prevent caching is to include a cache buster in your request URL...

var cacheBuster = "?" + new Date() * 1;
var url = "" + cacheBuster;

...do Request...

On 8/9/06, Sam <[EMAIL PROTECTED]> wrote:
Ajax.Request
 
 ... does
 
requestHeaders: ['cache-control','no-cache','pragma','no-cache'],
apply to both GET and PUT operations?
 
Can I ensure a page I retrieve will not be cached by the browser using Ajax.Request, GET?
 
Sam
 

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




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

Reply via email to