I want to force my a.css file to be cached.
The way I use it is to modify Apcache's httpd.conf. The code is as follows:
LoadModule headers_module modules/mod_headers.soheader set cache-control "max-age=1000"
Debug Discovery Cache-control is set up correctly:
But it still doesn't work:
Ideally, it should return 200, then size is from cache.
Baffled ...
Reply content:
I want to force my a.css file to be cached.
The way I use it is to modify Apcache's httpd.conf. The code is as follows:
LoadModule headers_module modules/mod_headers.soheader set cache-control "max-age=1000"
Debug Discovery Cache-control is set up correctly:
But it still doesn't work:
Ideally, it should return 200, then size is from cache.
Baffled ...
Refresh the action is not the same result will be different, you compare:
Address bar Enter: read cache from disk cache with browser cache
f5/ctrl+r: In any case, it will be requested by the browser and returned 304 if the resource does not expire
Ctrl+f5: In any case will request to the browser, forcing the return of resources200
Thank you, you right-click on the Chrome Refresh button. You can also see the status upstairs.