1

I would like to do something similiar to opening the developer tools in chrome and checking disable cache and then reload the page.

I can't modify the urls in any way (eg. appending a timestamp in the query) as this will work once, but next time I reload the page normally, the resources will load from the old url without the timestamp and be the old cached version.

I only need support for chrome and I don't have access to the server.

Basically I need the resource files to be update in the chrome cache, without altering the url.

Tyilo
  • 25,959
  • 32
  • 101
  • 183

2 Answers2

1

referring from this topic: Prevent browser caching of jQuery AJAX call result

As you are able to editing the server-side script to setting no cache header, it is hard to handler it perfectly on IE. The only way can do for client side is unfortunately adding timestamp on end of the query string.

Community
  • 1
  • 1
Cauliturtle
  • 661
  • 1
  • 5
  • 16
  • I don't have access to the server at all, however I only need support for chrome. – Tyilo Jul 05 '12 at 02:23
  • **+1** time stamp. Indeed it's unfortunate the SO Poster can't use this method. Perhaps some type of Chrome plugin does this? Dunno. – arttronics Jul 05 '12 at 02:44
  • 2
    no need plugin to do so: http://christian.roy.name/blog/disable-cache-chrome. BTW, @Tyilo, it'd better to deal with user for setting no cache chrome or talk to server-side part. – Cauliturtle Jul 05 '12 at 03:03
  • Excellent *Answer* Cauliturtle! – arttronics Jul 05 '12 at 03:05
1

In Chrome reloading all page resources regardless cache can be forced by long pressing Refresh button while developer tools is open

Serg
  • 1,287
  • 1
  • 8
  • 15