1
1
###################################################################################################
2
2
# Rocket-Nginx
3
- #
3
+ #
4
4
# Rocket-Nginx is a NGINX configuration to speedup your WordPress
5
5
# website with the cache plugin WP-Rocket (http://wp-rocket.me)
6
6
#
7
7
# Author: Maxime Jobin
8
8
# URL: https://github.com/maximejobin/rocket-nginx
9
9
#
10
- # Tested with WP-Rocket version: 2.5.11
10
+ # Tested with WP-Rocket version: 2.6.4
11
11
# Tested with NGINX: 1.8.0 (stable)
12
12
#
13
- # Version 1.0
13
+ # Version 1.0.1
14
14
#
15
15
###################################################################################################
16
16
@@ -24,7 +24,7 @@ set $rocket_encryption ""; # Is GZIP accepted by client ?
24
24
set $rocket_file ""; # Filename to use
25
25
set $rocket_is_bypassed "No"; # Header text added to check if the bypass worked or not. Header: X-Rocket-Nginx-Bypass
26
26
set $rocket_reason ""; # Reason why cache file was not used. If cache file is used, what file was used
27
- set $https_prefix "";
27
+ set $https_prefix ""; # HTTPS prefix to use when cached files are using HTTPS
28
28
29
29
30
30
###################################################################################################
@@ -78,15 +78,14 @@ if (!-f "$rocket_file") {
78
78
set $rocket_reason "File not cached";
79
79
}
80
80
81
- # If the bypass token is still on, let's bypass WordPress with the cached URL
81
+ # If the bypass token is still on, let's bypass WordPress with the cached URL
82
82
if ($rocket_bypass = 1) {
83
83
set $rocket_is_bypassed "Yes";
84
84
set $rocket_reason "$rocket_url";
85
85
}
86
86
87
87
# Clear variables if debug is not needed
88
88
if ($rocket_debug = 0) {
89
- set $rocket_is_bypassed "";
90
89
set $rocket_reason "";
91
90
set $rocket_file "";
92
91
}
@@ -144,7 +143,7 @@ location ~ /wp-content/cache/min/.*\.js$ {
144
143
145
144
###################################################################################################
146
145
# BROWSER MEDIA CACHE
147
- #
146
+ #
148
147
location ~* \.(ico|gif|jpe?g|png|svg|eot|otf|woff|woff2|ttf|ogg)$ {
149
148
expires max;
150
149
}
0 commit comments