TomatoYuyuko
V2EX  ›  问与答

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

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

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

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