Browser caching
-
Hello I’m hoping someone can help with this.
Theme = GeneratePress
I am having trouble enabling browser caching for several files.
I have done the following.
Manually added the following code to my htaccess file
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault “access plus 1 month”
# My favicon
ExpiresByType image/x-icon “access plus 1 year”
# Images
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
# CSS
ExpiresByType text/css “access plus 1 month”
# Javascript
ExpiresByType application/javascript “access plus 1 year”
</IfModule>
I have tried various plugins
Far Future Expiration Plugin
W3 Total CacheGTMetrix still reports the same files as not having far future expiration dates.
https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,regular,italic,600,600italic,700,700italic,800,800italic
https://www.itincharge.com/wp-content/plugins/simple-share-buttons-adder/buttons/somacro/facebook.png
https://www.itincharge.com/wp-content/plugins/simple-share-buttons-adder/buttons/somacro/google.png
https://www.itincharge.com/wp-content/plugins/simple-share-buttons-adder/buttons/somacro/twitter.png
https://www.itincharge.com/wp-content/plugins/simple-share-buttons-adder/buttons/somacro/linkedin.png
https://www.itincharge.com/wp-content/cache/minify/7e6a9.js
https://ws.sharethis.com/button/st_insights.js?publisher=4d48b7c5-0ae3-43d4-bfbe-3ff8c17a8ae6&product=simpleshare
https://www.itincharge.com/wp-content/cache/minify/072ef.js
https://www.itincharge.com/wp-content/cache/minify/dc0da.js
https://www.itincharge.com/wp-content/cache/minify/79c7d.js
https://www.itincharge.com/wp-content/cache/minify/472f6.js
https://connect.facebook.net/en_US/sdk.js
https://www.itincharge.com/wp-includes/js/wp-emoji-release.min.js?ver=4.9
https://www.itincharge.com/wp-content/uploads/2017/11/gradiant-circuit-bord-bw.jpg
https://www.itincharge.com/wp-content/uploads/2017/11/cropped-AdobeStock_83367257_Preview.jpeg
https://www.itincharge.com/wp-content/uploads/2017/11/background-gradient.jpgThe page I need help with: [log in to see the link]
- The topic ‘Browser caching’ is closed to new replies.