V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
TomatoYuyuko
V2EX  ›  问与答

nuxt 的静态项目每次部署都需要清缓存才能看到效果该怎么处理?

  •  
  •   TomatoYuyuko · Apr 6, 2022 · 1008 views
    This topic created in 1486 days ago, the information mentioned may be changed or developed.

    这边每次部署,测试那边看到的都是上个版本的页面,需要清空缓存,这种情况该怎么配置??

    2 replies    2022-04-08 11:12:12 +08:00
    DingJZ
        1
    DingJZ  
       Apr 7, 2022
    没用过 nuxt ,不知道具体在哪配置,不过基本就是配 nginx 禁用 html 的缓存,资源构建的时候加 hash
    TomatoYuyuko
        2
    TomatoYuyuko  
    OP
       Apr 8, 2022
    @DingJZ html 资源加 hash 是在 nginx 配置吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2134 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
    ♥ Do have faith in what you're doing.