HTTP Cache- Control

后端 未结 2 1436
孤城傲影
孤城傲影 2021-01-24 10:26

I am struggling with this - In PHP, I do this for a GET AJAX call

header(\'Cache-Control: max-age = 10000, private\');

The browser still manag

2条回答
  •  执笔经年
    2021-01-24 11:15

    Do you use Firebug? If yes, then go to the NET tab when your page loads & inspect what headers the browser is seeing. This will give you an idea as to what might be wrong...

    I use this -

    Cache-Control   public, max-age=60
    Content-Type    text/html; charset=utf-8
    

提交回复
热议问题