请问TP5.1怎么开启浏览器缓存?Pragma: no-cache

浏览:737 发布日期:2020/05/26 分类:ThinkPHP5专区 关键字: 浏览器缓存 no-cache
网站配置了CDN以后,如果不开启浏览器缓存,会导致CDN每次都会回源去取数据
配置文件app.php里面已经关掉了debug:    // 应用调试模式
    'app_debug'              => false ,
    // 应用Trace
    'app_trace'              => false,
配置文件session.php里面:    // 是否自动开启 SESSION
    'auto_start'     => false,
但是这样还是不行,response header仍然是no-cahceHTTP/1.1 200 OK
Date: Tue, 26 May 2020 03:38:59 GMT
Server: Apache/2.4.39 (Win64) PHP/7.4.4
X-Powered-By: PHP/7.4.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
最佳答案
评论() 相关
后面还有条评论,点击查看>>