zoukankan      html  css  js  c++  java
  • no-store:不允许缓存,用于某些变化非常频繁的数据,例如秒杀页面;

    
    no-store:不允许缓存,用于某些变化非常频繁的数据,例如秒杀页面;
    
    no-cache:它的字面含义容易与 no-store 搞混,实际的意思并不是不允许缓存,而是可以缓存,但在使用之前必须要去服务器验证是否过期,是否有最新的版本;
    
    must-revalidate:又是一个和 no-cache 相似的词,它的意思是如果缓存不过期就可以继续使用,但过期了如果还想用就必须去服务器验证。
    
    
    nginx 配置:
    location /admin  {
            root /var/www/html;
            index  index.html index.htm;
            add_header Cache-Control no-store;
            }
    
    
    

  • 相关阅读:
    Java线程死锁模拟
    Arrays Multi
    PHP Forms
    simple grammer
    有意义的命名 Meaningful names
    整洁代码
    XPath
    多态
    复用类
    访问控制权限
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348412.html
Copyright © 2011-2022 走看看