Jump to content

Expires headers Help


johnnyboy16

Recommended Posts

Howdy!

 

I ran a test with Yslow, and received a report about my files needing Expires Headers.

 

I came up with the following for a solution:

 

 

 

# Turn on the Expires engine

ExpiresActive On

 

# Expires after a month client accesses the file

ExpiresByType image/jpeg A2592000

ExpiresByType image/jpg A2592000

ExpiresByType image/gif A2592000

ExpiresByType image/png A2592000

ExpiresByType image/x-icon A2592000

ExpiresByType text/plain A2592000

 

# Good for one week

ExpiresByType application/x-javascript M604800

ExpiresByType text/css M604800

ExpiresByType text/javascript M604800

ExpiresByType text/html M604800

 

 

But, I am now receiving the report below.

 

here are 9 static components without a far-future expiration date.

 

    * (2010/9/28) http://xyxy.com/css/bbbb.css

    * (2010/9/28) http://xyxy.com/css/cal.css

    * (2010/9/27) http://xyxy.com/css/dddd.css

    * (no expires) http://xyxy.com/cal.css

    * (2010/9/29) http://www.google-analytics.com/ga.js

    * (2010/9/27) http://xyxy.com/js/ssss.css

    * (2010/9/27) http://xyxy.com/js/bbbb.css

    * (2010/9/27) http://xyxy.com/js/cal.js

    * (no expires) http://xyxy.com/image/favicon.ico

 

 

 

Can anyone offer me any advice, I am not sure what to do next?

Link to comment
https://forums.phpfreaks.com/topic/214621-expires-headers-help/
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.