I setup a test website on localhost:8022
and for some reason the css style sheets are not cached. The max age of a cache is set to 0 in the header Cache-Control: max-age=0
:
If I visit the site with Chrome, cache is working. If I visit other websites in Firefox like https://superuser.com
the cache is also working.
Why does Firefox send a max-age=0
in the request header for the locahost website. How can I change this behavior?
127.0.0.1 myserver.local
to your address in thehosts
file (and also use this address for requests)? Then Firefox may see the site as non-local and uses caching.