nginx配置

#隐藏版本号
server_tokens off;
#开启SSI模块,支持解析shtml
ssi on;
ssi_silent_errors on;
ssi_types text/shtml;
location ~ \.(js|css|html|png|jpg)$ {
    # 协商缓存 no-cache  |   不缓存 no-store
    add_header Cache-Control no-cache; 
    #修改时间
    add_header  Last-Modified $date_gmt;
    # 启用ETag进行更精细的版本控制
    etag on;
}

评论

企鹅:4654081

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×