How do I set expiration on CSS, JS and Images?

前端 未结 5 1391
甜味超标
甜味超标 2021-01-30 07:06

I have recently analysed my website with pagespeed addon on firebug. It suggested me to set expiration on CSS, JS and image files.

I am wondering, how do I do this?

5条回答
  •  爱一瞬间的悲伤
    2021-01-30 07:40

    i would like to add this solution for those searching for it....

    its also works great...using .htaccess

    https://webmasters.stackexchange.com/a/5275/37765

     
      ExpiresActive On
      ExpiresDefault A2592000
     
    

提交回复
热议问题