Questions tagged [no-cache]

A Cache-Control response directive in the HTTP header

93 questions
1
vote
0 answers

Google Chrome cache buggery : Chrome does not fetch latest version of the page despite NO-CACHE

I want to know how to instruct Chrome not to use a cached version of a page. I cannot get Google Chrome [15.0.874.106 m] to load the latest version. There was a typo on the page and I've corrected it. Other browsers fetch the corrected page. …
Tim
  • 8,669
  • 31
  • 105
  • 183
1
vote
1 answer

Google App Engine : default_expiration not overriden by Cache-Control:no-cache

Hello I want to put "One Year" of cache on all files, except ìndex.html that I want Cache-Control: no-cache But I get : I expect the last line to override the default_expiration but i get : cache-control: no-cache cache-control: public,…
marcant0
  • 189
  • 8
1
vote
0 answers

Why would Response.Cache.SetNoStore() not work in a class that derives from System.Web.UI.Page

I work on registration sites as part of my job and patterns appear that I try and farm out to a central BasePage DLL. Here I have created useful and reusable methods in the past, Such as methods to help sending emails and Dependency Injection setups…
Luke Duddridge
  • 4,285
  • 35
  • 50
1
vote
2 answers

TYPO3 9: Adding no_cache parameter in url disables cache

We are using TYPO3 9, and we see a lot of warnings in the log file that the cache is disabled. I see that this is because a lot of urls are called with an added no_cache=1 parameter. I disabled all no_cache=1 configuration at my system, but the log…
WimDiesel
  • 65
  • 1
  • 9
1
vote
0 answers

How browser handles `no-cache=“Set-Cookie”` in Cache-Control header

I'm wondering how browser would handle the situation when no-cache: "Set-Cookie" is presented in Cache-Control. I did some research online and the result was different. Some say it won't cache set-cookie header, others say it won't cache the content…
JLeGend
  • 11
  • 3
1
vote
1 answer

Iframe load a javascript which is loaded in parent page bu donot load from disk cache

I have a page which contains 4 Iframe, and all the pages add the same javascript. When the page loaded, I found the same javascript loaded from server 5 times. And then I set all Iframes loads when the javascript is loaded in the parent page, but…
yidane
  • 11
  • 4
1
vote
1 answer

Apache disable caching except jpe?g|png|gif|js|css

Here is how I enabled cache for images, JavaScript and CSS in Apache httpd.conf ExpiresActive On ExpiresDefault "access plus 7 day" FileETag None …
Kambiz
  • 99
  • 1
  • 10
1
vote
0 answers

Can't get Cache-Control working

When I inspect my website in Chrome's Network tab the Cache-Control is: Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 I tried to: 1 - Edit .htaccess to include #Força a utilizar Cache-Control e Expires…
1
vote
0 answers

Browser back button and duplicate data entry

I follow the PRG pattern to avoid form resubmission problem when page is refreshed. These are the action metods: public ViewResult AddDcoument(){ ..... return View(); } [HttpPost] public RedirectToRouteResult…
Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206
1
vote
0 answers

Python urllib2 adding 'no-cache' to request header does not work

I am using python 2.7.3 with varnish-3.0.2. I am using python urllib2 library. I wish to force the server to bring back the latest data from the DB and not to use the varnish cache so I added the following to my request req.add_header('Pragma',…
user3350887
  • 161
  • 2
  • 11
1
vote
1 answer

no-cache script without using Jquery

Hello I am trying to create a script which inserts into any webpage a meta tag to force no-cache. Currently this is my code and I dont want to use Jquery (as shown in Script to force IE8 cache behaviour). var MAXlen =…
1
vote
0 answers

Can't figure out how to prevent HTTP caching in Chrome using cache-control

I'm having some trouble trying to prevent my page from caching using the cache-control parameters in the HTML header. Below is a sample HTML code which I've created for testing purposes. I can't seem to figure out what I'm missing though, or perhaps…
hengroy
  • 11
  • 1
1
vote
0 answers

Does Cache control & pragma effects static content

In my application I am using this to set no-cache at browser end. Cache-Control: no-cache, no-store Pragma: no-cache But the problem is I can still see at my browser end that some images are cached. So I was wondering that how this works. Will it…
Onki
  • 1,879
  • 6
  • 38
  • 58
1
vote
1 answer

Restrict user to go BACK after Payment has been done

I have integrated Payment Gateway in my Web Application made in MVC4 Razor. After payment has been done successfully the user is redirected to the return URL.. Then i do some process like generating unique id ,sending payment details sms…
sunnykumar
  • 37
  • 1
  • 10
1
vote
4 answers

grunt contrib-sass sourcemap enable

I can't get a lot of contrib-sass features to work in grunt. I dived into grunt a day ago and I found it really good. Link to contrib-sass repo which says sourcemaps should be…
aegyed
  • 1,320
  • 3
  • 20
  • 39