Skip to content

Commit d94c2c3

Browse files
philwarehamalrra
authored andcommitted
Add expires rules for WebP
Ensure that Apache serves WebP images with far-future expires headers. Close #61
1 parent 08e7a87 commit d94c2c3

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### HEAD
2+
3+
* Add expires rules for WebP
4+
[[#61](https://github.com/h5bp/server-configs-apache/issues/61)].
5+
16
### 2.11.0 (October 27, 2014)
27

38
* Add configs for common media types used for `.woff` files

dist/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ FileETag None
864864
ExpiresByType image/jpeg "access plus 1 month"
865865
ExpiresByType image/png "access plus 1 month"
866866
ExpiresByType image/svg+xml "access plus 1 month"
867+
ExpiresByType image/webp "access plus 1 month"
867868
ExpiresByType video/mp4 "access plus 1 month"
868869
ExpiresByType video/ogg "access plus 1 month"
869870
ExpiresByType video/webm "access plus 1 month"

src/web_performance/expires_headers.conf

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
ExpiresByType image/jpeg "access plus 1 month"
5656
ExpiresByType image/png "access plus 1 month"
5757
ExpiresByType image/svg+xml "access plus 1 month"
58+
ExpiresByType image/webp "access plus 1 month"
5859
ExpiresByType video/mp4 "access plus 1 month"
5960
ExpiresByType video/ogg "access plus 1 month"
6061
ExpiresByType video/webm "access plus 1 month"

test/fixtures/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ FileETag None
816816
ExpiresByType image/jpeg "access plus 1 month"
817817
ExpiresByType image/png "access plus 1 month"
818818
ExpiresByType image/svg+xml "access plus 1 month"
819+
ExpiresByType image/webp "access plus 1 month"
819820
ExpiresByType video/mp4 "access plus 1 month"
820821
ExpiresByType video/ogg "access plus 1 month"
821822
ExpiresByType video/webm "access plus 1 month"

0 commit comments

Comments
 (0)