File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 10
10
# Tested with WP-Rocket version: 2.3.10
11
11
# Tested with NGINX: 1.6.2 (stable)
12
12
#
13
- # Version 0.2.1
13
+ # Version 0.3
14
14
#
15
15
###################################################################################################
16
16
@@ -87,6 +87,7 @@ 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;
90
91
add_header Vary "Accept-Encoding, Cookie";
91
92
add_header X-Rocket-Nginx-Bypass $rocket_is_bypassed;
92
93
add_header X-Rocket-Nginx-Reason $rocket_reason;
@@ -97,6 +98,7 @@ location ~ /wp-content/cache/wp-rocket/.*_gzip$ {
97
98
gzip off;
98
99
types {}
99
100
default_type text/html;
101
+ add_header Cache-Control public;
100
102
add_header Content-Encoding gzip;
101
103
add_header Vary "Accept-Encoding, Cookie";
102
104
add_header X-Rocket-Nginx-Bypass $rocket_is_bypassed;
@@ -109,7 +111,7 @@ location ~ /wp-content/cache/wp-rocket/.*_gzip$ {
109
111
#
110
112
location ~ /wp-content/cache/min/.*\.css$ {
111
113
gzip_vary on;
112
- expires 30d ;
114
+ expires max ;
113
115
}
114
116
115
117
@@ -118,7 +120,7 @@ location ~ /wp-content/cache/min/.*\.css$ {
118
120
#
119
121
location ~ /wp-content/cache/min/.*\.js$ {
120
122
gzip_vary on;
121
- expires 30d ;
123
+ expires max ;
122
124
}
123
125
124
126
You can’t perform that action at this time.
0 commit comments