at https://tools.pingdom.com I’m getting – “The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:”
/wp-content/themes … aper/includes/demos/sport/demo_style.css?ver=7.3
/wp-content/themes/Newspaper/js/tagdiv_theme.min.js?ver=7.3
/wp-content/themes/Newspaper/style.css?ver=7.3
In my htaccess file I have this code:
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault “access plus 2 days”
# My favicon
ExpiresByType image/x-icon “access plus 1 year”
# Other
ExpiresByType application/x-shockwave-flash “access 1 month”
# Images
ExpiresByType image/gif “access plus 6 month”
ExpiresByType image/png “access plus 6 month”
ExpiresByType image/jpg “access plus 6 month”
ExpiresByType image/jpeg “access plus 6 month”
# CSS
ExpiresByType text/css “access 1 month”
# Javascript
ExpiresByType application/javascript “access plus 1 year”
ExpiresByType text/x-javascript “access 1 month”
</IfModule>
But it looks like it’s not being applied to the theme’s javascript, and also when I have the rec’m settings for the rec’m WP super cache plugin, it keeps it refreshed to often (every 24 hrs). But even with the plugin disabled, it’s not caching it long enough like the htaccess code is saying. Any solution to this? Thanks!
Hello JJ0000,
I have inspected your above .htaccess configuration but unfortunately, at first look, we could not identify where is the error if this exists, sorry! As I recommend you is to try using the theme in the default state, without any customization, disable all untested plugins, all CDN modules if you are using and check the results. Please notice that is not a simple task and we cannot provide a more accurate response in this regard because of this request time-consuming and unfortunately, time does not allow us to provide customizations for .htaccess. You can give a simple search on our forum because there it has been discussed this on .htaccess. Please keep in mind that our theme works as properly with this type of .htaccess configuration, according to our documentation here -> http://screencast.com/t/qrwM7SNcQ -> https://forum.tagdiv.com/how-to-make-the-site-faster/. If you are not aware of the steps which are needed to take in this regard, please try to find other online solution in this regard or also, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thank you for your understanding!
