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
on 2006-08-10 00:35
on 2006-08-10 02:26
One sure fire way to prevent caching is to include a cache buster in your request URL... var cacheBuster = "?" + new Date() * 1; var url = yourURL + cacheBuster; ...do Request...
on 2006-08-15 14:18
Thanks for the suggestion. I'll give it a try. Sam _____ From: rails-spinoffs-bounces@lists.rubyonrails.org [mailto:rails-spinoffs-bounces@lists.rubyonrails.org] On Behalf Of Ryan Gahl Sent: Wednesday, August 09, 2006 2:31 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] requestHeaders: ['cache-control', 'no-cache','pragma', 'no-cache'], One sure fire way to prevent caching is to include a cache buster in your request URL... var cacheBuster = "?" + new Date() * 1; var url = yourURL + cacheBuster; ...do Request... On 8/9/06, Sam <sam.google@iness.com> 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