diff --git a/nginx.conf b/nginx.conf index a24b82a..244de47 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,9 @@ server { root /usr/share/nginx/html; index index.html; + # HTML 不缓存(旧站点 301 曾被浏览器缓存导致跳转异常;同时保证面试官看到最新简历) + add_header Cache-Control "no-cache"; + # 共享静态资源 location /css/ { alias /usr/share/nginx/html/css/; diff --git a/templates/page.html.hbs b/templates/page.html.hbs index 7d26bf0..b1864b0 100644 --- a/templates/page.html.hbs +++ b/templates/page.html.hbs @@ -14,12 +14,12 @@
- ⇄ 切换简历版本 + ⇄ 切换简历版本