cogeanumarius Posted July 28, 2012 Share Posted July 28, 2012 (edited) Salve dear community, I have asked my shared hosting (ixwebhosting - linux) and they confirmed that mod_expire is ON I have checked my htaccess file and here is what I have inside: # Catch 404 errors ErrorDocument 404 /404.php <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> When I test my page with Google page speed, I receive these red error messages: The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources: http://mydomain.com/img/m/10-medium.jpg (expiration not specified) http://mydomain.com/img/m/11-medium.jpg (expiration not specified) http://mydomain.com/img/m/12-medium.jpg (expiration not specified) What could be the issue, how may I change my presta settings so I will not receive the error that my images have no expiration date? Huge thanks in advance Edited July 28, 2012 by cogeanumarius (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 28, 2012 Share Posted July 28, 2012 try this (add): ExpiresByType image/jpg "access plus 1 month" 1 Link to comment Share on other sites More sharing options...
cogeanumarius Posted July 28, 2012 Author Share Posted July 28, 2012 Great, you eagle eyes, how could I not see the difference between jpg and jpeg Huge thanks, the problem is now that the error is still there, is there any king or refresh that needs to be done ? 1 Link to comment Share on other sites More sharing options...
El Patron Posted July 28, 2012 Share Posted July 28, 2012 uhm...try clearing your browse cache...otherwise send me the link via pm of your website... 1 Link to comment Share on other sites More sharing options...
cogeanumarius Posted July 29, 2012 Author Share Posted July 29, 2012 Salve, here is me again, I have used this link , great article, I have done most of the recommended tips, except those involving huge fee per month . I am not sure how may I find a tool like phpinfo.php but for apache settings, I am not sure if on my shared environment mod_deflate and mod_expire are ON, using Google's Page Speed, I get these 2 errors: Leverage browser caching and enable compression. PS: I have already made the settings that were suggested above Huge thanks for your support. Link to comment Share on other sites More sharing options...
mcgerry Posted August 24, 2012 Share Posted August 24, 2012 Salve, here is me again, I have used this link , great article, I have done most of the recommended tips, except those involving huge fee per month . I am not sure how may I find a tool like phpinfo.php but for apache settings, I am not sure if on my shared environment mod_deflate and mod_expire are ON, using Google's Page Speed, I get these 2 errors: Leverage browser caching and enable compression. PS: I have already made the settings that were suggested above Huge thanks for your support. Hello elpatron, cogeanumarius I have the same problem and I'm going crazy. I'm sure I have configured all the tips and tricks available in the manuals etc. The content of my htaccess file is the same as cogeanumarius. I also asked my web hosting (ipage.com) and they have confirmed that mod_expires turned on, also I did the checks elpatron posted http://www.prestashop.com/forums/topic/161968-page-speed- leverage-browser-caching / Do you think there is another way to debug? Can I enable any logs? Thanks in advance Jerry Link to comment Share on other sites More sharing options...
El Patron Posted August 24, 2012 Share Posted August 24, 2012 (edited) can y Hello elpatron, cogeanumarius I have the same problem and I'm going crazy. I'm sure I have configured all the tips and tricks available in the manuals etc. The content of my htaccess file is the same as cogeanumarius. I also asked my web hosting (ipage.com) and they have confirmed that mod_expires turned on, also I did the checks elpatron posted http://www.prestasho...968-page-speed- leverage-browser-caching / Do you think there is another way to debug? Can I enable any logs? Thanks in advance Jerry Hi Jerry, Can you post your .htaccess as it concerns mod_expires? One easy way to 'really' confirm that mod_expires is loaded is to remove the IF/EIF, if you get a 500 error then it's not on. (don't forget to have the back up .htaccess wit the IF). Edited August 24, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
mcgerry Posted August 24, 2012 Share Posted August 24, 2012 can y Hi Jerry, Can you post your .htaccess as it concerns mod_expires? One easy way to 'really' confirm that mod_expires is loaded is to remove the IF/EIF, if you get a 500 error then it's not on. (don't forget to have the back up .htaccess wit the IF). Hi, I just tried deleting IF/EIF of mod_expires.c without 500 error message and so I think mod_expires is enabled (also my web hosting iPage confirm it). Bellow you find part of my .htaccess file . Thanks in advance <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> Link to comment Share on other sites More sharing options...
duxyz Posted August 26, 2012 Share Posted August 26, 2012 (edited) Hi, I just tried deleting IF/EIF of mod_expires.c without 500 error message and so I think mod_expires is enabled (also my web hosting iPage confirm it). Bellow you find part of my .htaccess file . Thanks in advance <ifmodule mod_expires.c=""> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </ifmodule> Had a same problem and found a solution so here I share it with you: Please add this code to enable caching: <filesmatch ".(jpg|jpeg|png|gif|css|js|ico)$"=""> Header set Cache-Control "max-age=614800, public" </filesmatch> Enjoy! Edited August 26, 2012 by duxyz (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now