Jump to content

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...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.