Created
October 17, 2013 08:45
-
-
Save zet-snippets/7021369 to your computer and use it in GitHub Desktop.
.htaccess - activate svg cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SVG Chaching aktivieren | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/svg+xml "access plus 1 year" | |
</IfModule> |
Worked perfect for me. Removed the errors on PageSpeed Insighs.
Thank you!
if it does not work for someone, change the line
ExpiresByType image/svg+xml "access plus 1 year"
with
ExpiresByType image/svg+xml "access 1 year"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is not working