Answer the question
In order to leave comments, you need to log in
Why does Chrome give the local cache on back and forward navigation (with buttons) ignoring Cache-Control headers with values: must-revalidate, no-cache?
Maybe I'm doing something wrong or I don't understand something... but the situation is as follows: a web application (ASP.NET) running on a server (IIS 10) creates dependencies (CacheDependency) for certain pages, when they change, it connects to Dependency resource (page) ceases to be relevant, returns to the client a fresh version with headers:
Cache-Control: private, no-cache, must-revalidate, max-age=0
Last-Modified: Sun, 06 Aug 2017 18:03:49 GMT
from disk cache
. For clarity, I will demonstrate the headings for three situations. GET [url] HTTP/1.1
Host: [host]
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
DNT: 1
Referer: [refer]
Accept-Encoding: gzip, deflate, br
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
HTTP/1.1 200 OK
Cache-Control: private, no-cache, must-revalidate, max-age=0
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Last-Modified: Sun, 06 Aug 2017 18:03:49 GMT
X-XSS-Protection: 1; mode=block
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
Date: Mon, 07 Aug 2017 10:52:00 GMT
Content-Length: 3323
GET [url] HTTP/1.1
Host: [host]
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Accept: text/css,*/*;q=0.1
DNT: 1
Referer: [referer]
Accept-Encoding: gzip, deflate, br
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
If-Modified-Since: Sun, 06 Aug 2017 18:03:49 GMT
HTTP/1.1 304 Not Modified
Cache-Control: private, no-cache, must-revalidate, max-age=0
Accept-Ranges: bytes
Last-Modified: Sun, 06 Aug 2017 18:03:49 GMT
Date: Mon, 07 Aug 2017 10:53:00 GMT
Request URL:[url]
Request Method:GET
Status Code:200 OK (from disk cache)
! Provisional headers are shown
Referer:[referer]
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question