File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,22 +87,22 @@ if ($rocket_debug = 0) {
87
87
88
88
# Add header to HTML cached files
89
89
location ~ /wp-content/cache/wp-rocket/.*html$ {
90
- add_header Cache-Control public;
91
90
add_header Vary "Accept-Encoding, Cookie";
92
91
add_header X-Rocket-Nginx-Bypass $rocket_is_bypassed;
93
92
add_header X-Rocket-Nginx-Reason $rocket_reason;
93
+ expires 30d;
94
94
}
95
95
96
96
# Do not gzip cached files that are already gzipped
97
97
location ~ /wp-content/cache/wp-rocket/.*_gzip$ {
98
98
gzip off;
99
99
types {}
100
100
default_type text/html;
101
- add_header Cache-Control public;
102
101
add_header Content-Encoding gzip;
103
102
add_header Vary "Accept-Encoding, Cookie";
104
103
add_header X-Rocket-Nginx-Bypass $rocket_is_bypassed;
105
104
add_header X-Rocket-Nginx-Reason $rocket_reason;
105
+ expires 30d;
106
106
}
107
107
108
108
@@ -128,5 +128,5 @@ location ~ /wp-content/cache/min/.*\.js$ {
128
128
# BROWSER MEDIA CACHE
129
129
#
130
130
location ~* \.(ico|gif|jpe?g|png|svg|eot|otf|woff|ttf|ogg)$ {
131
- expires 30d ;
131
+ expires max ;
132
132
}
You can’t perform that action at this time.
0 commit comments