HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
Comment
zqlsup
想问下各位 nginx 怎么配置 index.html 不缓存呢?(其他静态文件要缓存)
前端每次刷新版本的时候都会出现白屏的问题,搜了一些答案,说是 index.html 文件被缓存了,项目是基于 Vue 的,想问下怎么配置 nginx,才能不缓存 index.html 只缓存其他静态文
NULL
NULL
·4 years ago
USER_NOT_FOUND

nginx 我记得可以配置 add_header 解决,搜索一下用法

Replies
NULL
NULL
Joined 4 years ago
USER_NOT_FOUND
Message
Terms of ServicePrivacy PolicyCookie PolicyMarkdown SyntaxUser PointsUser Feedback© 2025 Shware Inc.