Skip to content

Commit 5df6946

Browse files
Extend media and font cache TTL to 1 year (#293)
1 parent a5893aa commit 5df6946

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

.github/workflows/htaccess.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: ./bin/build.sh test/conf/.htaccess test/build/htaccess_fixture.conf
2121

2222
- name: Test with server-configs-test
23-
uses: h5bp/server-configs-test@5.0.2
23+
uses: h5bp/server-configs-test@5.1.0
2424
with:
2525
command: test
2626
server: httpd
@@ -29,7 +29,7 @@ jobs:
2929
tests: basic-file-access:cache-busting:custom-errors:forbidden-files:enforce-gzip:precompressed-files-gzip:concatenation
3030

3131
- name: Benchmark
32-
uses: h5bp/server-configs-test@5.0.2
32+
uses: h5bp/server-configs-test@5.1.0
3333
with:
3434
command: benchmark
3535
server: httpd

.github/workflows/server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
"httpd.conf"
3232
3333
- name: Test with server-configs-test
34-
uses: h5bp/server-configs-test@5.0.2
34+
uses: h5bp/server-configs-test@5.1.0
3535
with:
3636
command: test
3737
server: httpd
@@ -42,7 +42,7 @@ jobs:
4242
tests: basic-file-access;cache-busting;custom-errors;forbidden-files;enforce-gzip;precompressed-files-gzip;rewrites;ssl
4343

4444
- name: Benchmark
45-
uses: h5bp/server-configs-test@5.0.2
45+
uses: h5bp/server-configs-test@5.1.0
4646
with:
4747
command: benchmark
4848
server: httpd

h5bp/web_performance/cache_expiration.conf

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<IfModule mod_expires.c>
1515

1616
ExpiresActive on
17-
ExpiresDefault "access plus 1 month"
17+
ExpiresDefault "access plus 1 year"
1818

1919
# CSS
2020

@@ -67,20 +67,20 @@
6767

6868
# Media files
6969

70-
ExpiresByType audio/ogg "access plus 1 month"
71-
ExpiresByType image/apng "access plus 1 month"
72-
ExpiresByType image/avif "access plus 1 month"
73-
ExpiresByType image/avif-sequence "access plus 1 month"
74-
ExpiresByType image/bmp "access plus 1 month"
75-
ExpiresByType image/gif "access plus 1 month"
76-
ExpiresByType image/jpeg "access plus 1 month"
77-
ExpiresByType image/jxl "access plus 1 month"
78-
ExpiresByType image/png "access plus 1 month"
79-
ExpiresByType image/svg+xml "access plus 1 month"
80-
ExpiresByType image/webp "access plus 1 month"
81-
ExpiresByType video/mp4 "access plus 1 month"
82-
ExpiresByType video/ogg "access plus 1 month"
83-
ExpiresByType video/webm "access plus 1 month"
70+
ExpiresByType audio/ogg "access plus 1 year"
71+
ExpiresByType image/apng "access plus 1 year"
72+
ExpiresByType image/avif "access plus 1 year"
73+
ExpiresByType image/avif-sequence "access plus 1 year"
74+
ExpiresByType image/bmp "access plus 1 year"
75+
ExpiresByType image/gif "access plus 1 year"
76+
ExpiresByType image/jpeg "access plus 1 year"
77+
ExpiresByType image/jxl "access plus 1 year"
78+
ExpiresByType image/png "access plus 1 year"
79+
ExpiresByType image/svg+xml "access plus 1 year"
80+
ExpiresByType image/webp "access plus 1 year"
81+
ExpiresByType video/mp4 "access plus 1 year"
82+
ExpiresByType video/ogg "access plus 1 year"
83+
ExpiresByType video/webm "access plus 1 year"
8484

8585

8686
# WebAssembly
@@ -91,28 +91,28 @@
9191
# Web fonts
9292

9393
# Collection
94-
ExpiresByType font/collection "access plus 1 month"
94+
ExpiresByType font/collection "access plus 1 year"
9595

9696
# Embedded OpenType (EOT)
97-
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
98-
ExpiresByType font/eot "access plus 1 month"
97+
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
98+
ExpiresByType font/eot "access plus 1 year"
9999

100100
# OpenType
101-
ExpiresByType font/opentype "access plus 1 month"
102-
ExpiresByType font/otf "access plus 1 month"
101+
ExpiresByType font/opentype "access plus 1 year"
102+
ExpiresByType font/otf "access plus 1 year"
103103

104104
# TrueType
105-
ExpiresByType application/x-font-ttf "access plus 1 month"
106-
ExpiresByType font/ttf "access plus 1 month"
105+
ExpiresByType application/x-font-ttf "access plus 1 year"
106+
ExpiresByType font/ttf "access plus 1 year"
107107

108108
# Web Open Font Format (WOFF) 1.0
109-
ExpiresByType application/font-woff "access plus 1 month"
110-
ExpiresByType application/x-font-woff "access plus 1 month"
111-
ExpiresByType font/woff "access plus 1 month"
109+
ExpiresByType application/font-woff "access plus 1 year"
110+
ExpiresByType application/x-font-woff "access plus 1 year"
111+
ExpiresByType font/woff "access plus 1 year"
112112

113113
# Web Open Font Format (WOFF) 2.0
114-
ExpiresByType application/font-woff2 "access plus 1 month"
115-
ExpiresByType font/woff2 "access plus 1 month"
114+
ExpiresByType application/font-woff2 "access plus 1 year"
115+
ExpiresByType font/woff2 "access plus 1 year"
116116

117117

118118
# Other

0 commit comments

Comments
 (0)