configuration-templates – Blame information for rev 6
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
6 | office | 1 | ######################################################################## |
2 | # Expiration - sets cache expiration for content. # |
||
3 | # Depends on Apache modules: # |
||
4 | # expires, headers # |
||
5 | ######################################################################## |
||
6 | |||
7 | # Serve resources with far-future expires headers. |
||
8 | # |
||
9 | # (!) If you don't control versioning with filename-based |
||
10 | # cache busting, you should consider lowering the cache times |
||
11 | # to something like one week. |
||
12 | # |
||
13 | # https://httpd.apache.org/docs/current/mod/mod_expires.html |
||
14 | <IfModule mod_expires.c> |
||
15 | ExpiresActive on |
||
16 | ExpiresDefault "access plus 1 month" |
||
17 | |||
18 | ## CSS |
||
19 | ExpiresByType text/css "access plus 1 year" |
||
20 | |||
21 | ## Data interchange |
||
22 | ExpiresByType application/atom+xml "access plus 1 hour" |
||
23 | ExpiresByType application/rdf+xml "access plus 1 hour" |
||
24 | ExpiresByType application/rss+xml "access plus 1 hour" |
||
25 | |||
26 | ExpiresByType application/json "access plus 0 seconds" |
||
27 | ExpiresByType application/ld+json "access plus 0 seconds" |
||
28 | ExpiresByType application/schema+json "access plus 0 seconds" |
||
29 | ExpiresByType application/vnd.geo+json "access plus 0 seconds" |
||
30 | ExpiresByType application/xml "access plus 0 seconds" |
||
31 | ExpiresByType text/xml "access plus 0 seconds" |
||
32 | |||
33 | ## Favicon (cannot be renamed!) and cursor images |
||
34 | ExpiresByType image/vnd.microsoft.icon "access plus 1 week" |
||
35 | ExpiresByType image/x-icon "access plus 1 week" |
||
36 | |||
37 | ## HTML |
||
38 | ExpiresByType text/html "access plus 60 seconds" |
||
39 | |||
40 | ## JavaScript |
||
41 | ExpiresByType application/javascript "access plus 1 year" |
||
42 | ExpiresByType application/x-javascript "access plus 1 year" |
||
43 | ExpiresByType text/javascript "access plus 1 year" |
||
44 | |||
45 | ## Manifest files |
||
46 | ExpiresByType application/manifest+json "access plus 1 week" |
||
47 | ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds" |
||
48 | ExpiresByType text/cache-manifest "access plus 0 seconds" |
||
49 | |||
50 | |||
51 | ## Media files |
||
52 | ExpiresByType audio/ogg "access plus 1 month" |
||
53 | ExpiresByType image/bmp "access plus 1 month" |
||
54 | ExpiresByType image/gif "access plus 1 month" |
||
55 | ExpiresByType image/jpeg "access plus 1 month" |
||
56 | ExpiresByType image/png "access plus 1 month" |
||
57 | ExpiresByType image/svg+xml "access plus 1 month" |
||
58 | ExpiresByType image/webp "access plus 1 month" |
||
59 | ExpiresByType video/mp4 "access plus 1 month" |
||
60 | ExpiresByType video/ogg "access plus 1 month" |
||
61 | ExpiresByType video/webm "access plus 1 month" |
||
62 | |||
63 | ## Web fonts |
||
64 | # Embedded OpenType (EOT) |
||
65 | ExpiresByType application/vnd.ms-fontobject "access plus 1 month" |
||
66 | ExpiresByType font/eot "access plus 1 month" |
||
67 | # OpenType |
||
68 | ExpiresByType font/opentype "access plus 1 month" |
||
69 | # TrueType |
||
70 | ExpiresByType application/x-font-ttf "access plus 1 month" |
||
71 | # Web Open Font Format (WOFF) 1.0 |
||
72 | ExpiresByType application/font-woff "access plus 1 month" |
||
73 | ExpiresByType application/x-font-woff "access plus 1 month" |
||
74 | ExpiresByType font/woff "access plus 1 month" |
||
75 | # Web Open Font Format (WOFF) 2.0 |
||
76 | ExpiresByType application/font-woff2 "access plus 1 month" |
||
77 | |||
78 | ## Other |
||
79 | ExpiresByType text/x-cross-domain-policy "access plus 1 week" |
||
80 | |||
81 | # Remove `ETags` as resources are sent with far-future expires headers. |
||
82 | <IfModule mod_headers.c> |
||
83 | Header unset ETag |
||
84 | </IfModule> |
||
85 | |||
86 | FileETag None |
||
87 | |||
88 | </IfModule> |