Home
Sign Up
Sign In
V2EX
›
问与答
nuxt 的静态项目每次部署都需要清缓存才能看到效果该怎么处理?
TomatoYuyuko
·
Apr 6, 2022
· 1170 views
This topic created in 1562 days ago, the information mentioned may be changed or developed.
这边每次部署,测试那边看到的都是上个版本的页面,需要清空缓存,这种情况该怎么配置??
nuxt
部署
清空
静态
2 replies
•
2022-04-08 11:12:12 +08:00
1
DingJZ
Apr 7, 2022
没用过 nuxt ,不知道具体在哪配置,不过基本就是配 nginx 禁用 html 的缓存,资源构建的时候加 hash
2
TomatoYuyuko
OP
Apr 8, 2022
@
DingJZ
html 资源加 hash 是在 nginx 配置吗
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
5619 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: d3e9c8b8 · 42ms ·
UTC 08:54
·
PVG 16:54
·
LAX 01:54
·
JFK 04:54
♥ Do have faith in what you're doing.
❯