Skip to content

Commit

Permalink
Merge pull request #71 from LeastAuthority/add-gzip
Browse files Browse the repository at this point in the history
Added gzip for static resources
  • Loading branch information
donpui authored Nov 30, 2022
2 parents 0fac896 + 01bdaea commit b9f5d17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/src/public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
ExpiresByType image/ico "access plus 1 month"
ExpiresByType text/html "access plus 1 days"
</IfModule>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/wasm
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-font-ttf
</IfModule>

0 comments on commit b9f5d17

Please sign in to comment.