webpack打包后
其中css,js等文件因为后缀名,不怕缓存了,
反倒是index.html
经测试 localhost:8080 或者 localhost:8080/index.html#/login?redirect=%2F
等涉及到重定向304操作的,不会缓存,
而localhost:8080/index.html直接访问就会缓存
解决方案:
服务器端对 .html 文件设置响应头no-cache等 (没试过)
仅记录下
webpack打包后
其中css,js等文件因为后缀名,不怕缓存了,
反倒是index.html
经测试 localhost:8080 或者 localhost:8080/index.html#/login?redirect=%2F
等涉及到重定向304操作的,不会缓存,
而localhost:8080/index.html直接访问就会缓存
解决方案:
服务器端对 .html 文件设置响应头no-cache等 (没试过)
仅记录下