Cache-Control headers, max-age defined but back button always deliver web cache data
问题 Im testing how cache-control header works on Chrome. My setup in nginx is quite easy: server { listen 80; server_name localhost; etag on; root /usr/share/nginx/html; location / { add_header Cache-Control "must-revalidate, private, max-age=10"; } } The behaviour I was expecting for the setup would be: max-age: Use cache for the specified time in seconds etag: Use for validating freshness of data private: avoid proxy caches to keep the data With hard-reloads Im getting the expected behaviour: 1