清除VUE微信公众号页面缓存
主要由该配置实现
add_header Last-Modified $date_gmt;
以下为完整配置
location / {
root /opt/static/xxxx;
index index.html;
autoindex on;
directio 512;
output_buffers 1 128k;
open_file_cache max=1000 inactive=30s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
#### 清除缓存
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;
}