-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: gzip js, css, SVG icons assets (#11208)
As pointed by @github-throwaway in openfoodfacts/smooth-app#5583 (comment) , we currently serve uncompressed assets (CSS, JS etc.). We should add .gz versions so that they can be served by nginx. We need to keep the non .gz files as well as we use try_files, which returns a 404 if the uncompressed file does not exist: ``` try_files resources/$uri $uri $uri/ =404; gzip_static always; gunzip on; ```
- Loading branch information
1 parent
85fd575
commit c0a5275
Showing
3 changed files
with
157 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.