Last active
May 8, 2019 06:11
-
-
Save WordPress-Handbuch/551ad171254f8da48f45b3a261274d44 to your computer and use it in GitHub Desktop.
Take Control of the HTTP Expiration Headers and disable ETags
This file contains hidden or 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
| <IfModule mod_expires.c> | |
| ExpiresActive On | |
| FileETag None | |
| Header unset ETag | |
| ExpiresDefault "access plus 1 month" | |
| ExpiresByType text/css "access plus 1 year" | |
| ExpiresByType application/atom+xml "access plus 1 hour" | |
| ExpiresByType application/rdf+xml "access plus 1 hour" | |
| ExpiresByType application/rss+xml "access plus 1 hour" | |
| ExpiresByType image/vnd.microsoft.icon "access plus 1 year" | |
| ExpiresByType image/x-icon "access plus 1 year" | |
| ExpiresByType text/html "access plus 0 seconds" | |
| ExpiresByType application/javascript "access plus 1 year" | |
| ExpiresByType application/x-javascript "access plus 1 year" | |
| ExpiresByType text/javascript "access plus 1 year" | |
| ExpiresByType application/manifest+json "access plus 1 year" | |
| ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds" | |
| ExpiresByType text/cache-manifest "access plus 0 seconds" | |
| ExpiresByType audio/ogg "access plus 1 year" | |
| ExpiresByType image/bmp "access plus 1 year" | |
| ExpiresByType image/gif "access plus 1 year" | |
| ExpiresByType image/jpeg "access plus 1 year" | |
| ExpiresByType image/png "access plus 1 year" | |
| ExpiresByType image/svg+xml "access plus 1 year" | |
| ExpiresByType image/webp "access plus 1 year" | |
| ExpiresByType video/mp4 "access plus 1 year" | |
| ExpiresByType video/ogg "access plus 1 year" | |
| ExpiresByType video/webm "access plus 1 year" | |
| ExpiresByType application/wasm "access plus 1 year" | |
| ExpiresByType font/collection "access plus 1 year" | |
| ExpiresByType application/vnd.ms-fontobject "access plus 1 year" | |
| ExpiresByType font/eot "access plus 1 year" | |
| ExpiresByType font/opentype "access plus 1 year" | |
| ExpiresByType font/otf "access plus 1 year" | |
| ExpiresByType application/x-font-ttf "access plus 1 year" | |
| ExpiresByType font/ttf "access plus 1 year" | |
| ExpiresByType application/font-woff "access plus 1 year" | |
| ExpiresByType application/x-font-woff "access plus 1 year" | |
| ExpiresByType font/woff "access plus 1 year" | |
| ExpiresByType application/font-woff2 "access plus 1 year" | |
| ExpiresByType font/woff2 "access plus 1 year" | |
| ExpiresByType text/x-cross-domain-policy "access plus 1 year" | |
| </IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment