We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server { gzip on; gzip_min_length 1k; gzip_buffers 4 16k; #gzip_http_version [1.0;](http://xx.com;) gzip_comp_level 2; gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png; gzip_vary off; gzip_disable "MSIE [1-6]\."; listen 8010; server_name localhost; error_page 500 502 503 504 /[50x.html;]http://xx.com;) root html/dist; location / { index [index.html;](http://xxx.com) try_files $uri $uri/ /[index.html;](http://xxx.com) } location ~* \.(html)$ { access_log off; add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate"; } location ~* \.(css|js|png|jpg|jpeg|gif|gz|svg|mp4|ogg|ogv|webm|htc|xml|woff)$ { access_log off; add_header Cache-Control max-age=604800; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
一、所有前端工程打包时, 都需要对文件进行版本管理, 避免缓存命中错误
二、所有前端工程 NG 部署时都需要配置缓存策略
三、工程范围及策略:
参考:
The text was updated successfully, but these errors were encountered: