PHP cache control doesn't seem to work

前端 未结 3 2026
难免孤独
难免孤独 2021-01-14 19:22

Please take a look at my website:vynora

It\'s not finished. I have put a PHP header in the top of my HTML page:



        
3条回答
  •  一整个雨季
    2021-01-14 19:26

    This may not work because there is possible whitespace before header(). Try it like this:

    
    

    You should set the expired header as well, because old browsers do not understand "max-age".

    Btw.: Your server is currently sending "max-age: 0".

提交回复
热议问题