Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我nginx用作反向代理和nodejs应用程序。我想知道是否有任何解决方案可以HSTS从网络服务器强制或 HTTPS 严格传输安全?
nginx
nodejs
HSTS
我不想让用户重置他们的浏览器缓存,因为它确实是技术性的,他们不知道如何解决这个问题。
您可以使用max-age = 0重置缓存和强制 HTST 缓存重置。
max-age = 0
在 nginx 中:
server { ... add_header Strict-Transport-Security "max-age=0;"; ... }