johnnyboy16 Posted September 28, 2010 Share Posted September 28, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/214621-expires-headers-help/ Share on other sites More sharing options...
lifelinux Posted November 1, 2010 Share Posted November 1, 2010 Please test again with google Page Speed, and show logs ? Quote Link to comment https://forums.phpfreaks.com/topic/214621-expires-headers-help/#findComment-1128848 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.