Skip to content

Instantly share code, notes, and snippets.

@zet-snippets
Created October 17, 2013 08:45
Show Gist options
  • Save zet-snippets/7021369 to your computer and use it in GitHub Desktop.
Save zet-snippets/7021369 to your computer and use it in GitHub Desktop.
.htaccess - activate svg cache
# SVG Chaching aktivieren
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/svg+xml "access plus 1 year"
</IfModule>
@inyee786
Copy link

this is not working

@Torquewrench
Copy link

Worked perfect for me. Removed the errors on PageSpeed Insighs.

Thank you!

@kressly
Copy link

kressly commented Mar 5, 2018

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