File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ set $rocket_file "$document_root$rocket_url";
43
43
# Do not bypass if it's a POST request
44
44
if ($request_method = POST) {
45
45
set $rocket_bypass 0;
46
- set $rocket_reason "POST detected ";
46
+ set $rocket_reason "POST request ";
47
47
}
48
48
49
49
# Do not bypass if arguments are found (e.g. ?page=2)
@@ -108,7 +108,7 @@ location ~ /wp-content/cache/wp-rocket/.*_gzip$ {
108
108
# BROWSER CSS CACHE
109
109
#
110
110
location ~ /wp-content/cache/min/.*\.css$ {
111
- add_header Vary "Accept-Encoding" ;
111
+ gzip_vary on ;
112
112
expires 30d;
113
113
}
114
114
@@ -117,14 +117,14 @@ location ~ /wp-content/cache/min/.*\.css$ {
117
117
# BROWSER JS CACHE
118
118
#
119
119
location ~ /wp-content/cache/min/.*\.js$ {
120
- add_header Vary "Accept-Encoding" ;
120
+ gzip_vary on ;
121
121
expires 30d;
122
122
}
123
123
124
124
125
125
###################################################################################################
126
- # BROWSER IMAGES CACHE
126
+ # BROWSER MEDIA CACHE
127
127
#
128
- location ~* \.(ico|gif|jpe?g|png)$ {
128
+ location ~* \.(ico|gif|jpe?g|png|svg|eot|otf|woff|ttf|ogg )$ {
129
129
expires 30d;
130
130
}
You can’t perform that action at this time.
0 commit comments