通过配置nginx干掉 304 (from memory cache) (from disk cache)
server {
listen 8080;
server_name localhost;
location / {
root /your/site/public;
index index.html;
# kill cache
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
etag off;
}
}
如果您觉得本文的内容对您的学习有所帮助:
关键字:
前端测试