Skip to content

Commit 0ae8cfe

Browse files
author
Maxime Jobin
committed
Gzip and cache in browser all JS and CSS files.
1 parent da8cf56 commit 0ae8cfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rocket-nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ add_header X-Rocket-Nginx-File $rocket_file;
155155
###################################################################################################
156156
# BROWSER CSS CACHE
157157
#
158-
location ~ /wp-content/cache/min/.*\.css$ {
158+
location ~* \.css$ {
159159
gzip_vary on;
160160
expires max;
161161
}
@@ -164,7 +164,7 @@ location ~ /wp-content/cache/min/.*\.css$ {
164164
###################################################################################################
165165
# BROWSER JS CACHE
166166
#
167-
location ~ /wp-content/cache/min/.*\.js$ {
167+
location ~* \.js$ {
168168
gzip_vary on;
169169
expires max;
170170
}

0 commit comments

Comments
 (0)