Good afternoon, everyone. I can see from the book that header (& quot; Cache-Control: no-cache & quot;) can force the browser not to use the Cache, so I want to test the effect. the code is as follows: {code ...} but I didn't see the expected results. every time I refresh the page, 304 is returned. why not 200 ?...
Good afternoon, everyone. I can see from the book that header ("Cache-Control: no-cache") can force the browser not to use the Cache, so I want to test the effect. the code is as follows:
Document
But I didn't see the expected results. every time I refresh the page, 304 is returned. why not 200?
I cannot guess...
Reply content:
Good afternoon, everyone. I can see from the book that header ("Cache-Control: no-cache") can force the browser not to use the Cache, so I want to test the effect. the code is as follows:
Document
But I didn't see the expected results. every time I refresh the page, 304 is returned. why not 200?
I cannot guess...
Html is not 200 ..
Jpg is a static file, and php is returned in apache/nginx, and the cache is also processed by the server.
Clear the browser cache.
The first load, returns 200. If the server does not change, 304 is returned.
To forcibly refresh the page, press Ctrl + F5 on Google's browser.
Check whether the cache is enabled on your web server (such as nginx.