Skip to content

Commit dbe2380

Browse files
committed
🎨 Apply final performance optimizations: compress images, update cache headers, fix CSS
1 parent 63b8d94 commit dbe2380

2 files changed

Lines changed: 970 additions & 14 deletions

File tree

‎.htaccess‎

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
<IfModule mod_expires.c>
2-
ExpiresActive on
3-
ExpiresByType text/css "access plus 1 year"
4-
ExpiresByType application/javascript "access plus 1 year"
5-
ExpiresByType image/png "access plus 1 year"
2+
ExpiresActive On
63
ExpiresByType image/jpg "access plus 1 year"
74
ExpiresByType image/jpeg "access plus 1 year"
5+
ExpiresByType image/png "access plus 1 year"
6+
ExpiresByType text/css "access plus 1 year"
7+
ExpiresByType application/pdf "access plus 1 month"
8+
ExpiresByType application/javascript "access plus 1 year"
9+
ExpiresByType text/javascript "access plus 1 year"
810
</IfModule>
911

10-
<IfModule mod_deflate.c>
11-
AddOutputFilterByType DEFLATE text/plain
12-
AddOutputFilterByType DEFLATE text/html
13-
AddOutputFilterByType DEFLATE text/xml
14-
AddOutputFilterByType DEFLATE text/css
15-
AddOutputFilterByType DEFLATE application/xml
16-
AddOutputFilterByType DEFLATE application/xhtml+xml
17-
AddOutputFilterByType DEFLATE application/rss+xml
18-
AddOutputFilterByType DEFLATE application/javascript
19-
AddOutputFilterByType DEFLATE application/x-javascript
12+
<IfModule mod_headers.c>
13+
<FilesMatch "\.(css|js|png|jpg|jpeg|gif|ico|svg)$">
14+
Header set Cache-Control "max-age=31536000, public"
15+
</FilesMatch>
2016
</IfModule>

0 commit comments

Comments
 (0)