Skip to content

Commit 8a072eb

Browse files
committed
Change expiration time
1 parent 88abcd6 commit 8a072eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rocket-nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,22 @@ if ($rocket_debug = 0) {
8787

8888
# Add header to HTML cached files
8989
location ~ /wp-content/cache/wp-rocket/.*html$ {
90-
add_header Cache-Control public;
9190
add_header Vary "Accept-Encoding, Cookie";
9291
add_header X-Rocket-Nginx-Bypass $rocket_is_bypassed;
9392
add_header X-Rocket-Nginx-Reason $rocket_reason;
93+
expires 30d;
9494
}
9595

9696
# Do not gzip cached files that are already gzipped
9797
location ~ /wp-content/cache/wp-rocket/.*_gzip$ {
9898
gzip off;
9999
types {}
100100
default_type text/html;
101-
add_header Cache-Control public;
102101
add_header Content-Encoding gzip;
103102
add_header Vary "Accept-Encoding, Cookie";
104103
add_header X-Rocket-Nginx-Bypass $rocket_is_bypassed;
105104
add_header X-Rocket-Nginx-Reason $rocket_reason;
105+
expires 30d;
106106
}
107107

108108

@@ -128,5 +128,5 @@ location ~ /wp-content/cache/min/.*\.js$ {
128128
# BROWSER MEDIA CACHE
129129
#
130130
location ~* \.(ico|gif|jpe?g|png|svg|eot|otf|woff|ttf|ogg)$ {
131-
expires 30d;
131+
expires max;
132132
}

0 commit comments

Comments
 (0)