Add expires header without mod_expires?

后端 未结 3 1034
情书的邮戳
情书的邮戳 2021-01-12 07:40

I know that I can add expires header using mod_expires. However, what can I do if the Apache server doesn\'t have mod_expires installed and I don\'t want to route the access

3条回答
  •  不要未来只要你来
    2021-01-12 08:21

    If you have static Expires headers, the following will add an Expires header to your js and css files:

    
    Header set Expires "Fri, 01 Jan 2010 00:00:00 GMT"
    
    

提交回复
热议问题