File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,10 @@ if (!-f "$rocket_file") {
72
72
set $rocket_reason "File not cached";
73
73
}
74
74
75
- # If the bypass token is still on, rewrite according to the file linked to the request
75
+ # If the bypass token is still on, let's bypass WordPress with the cached URL
76
76
if ($rocket_bypass = 1) {
77
77
set $rocket_is_bypassed "Yes";
78
78
set $rocket_reason "$rocket_url";
79
- rewrite .* "$rocket_url" last;
80
79
}
81
80
82
81
# Clear variables if debug is not needed
@@ -85,6 +84,12 @@ if ($rocket_debug = 0) {
85
84
set $rocket_reason "";
86
85
}
87
86
87
+ # If the bypass token is still on, rewrite according to the file linked to the request
88
+ if ($rocket_bypass = 1) {
89
+ rewrite .* "$rocket_url" last;
90
+ }
91
+
92
+
88
93
# Add header to HTML cached files
89
94
location ~ /wp-content/cache/wp-rocket/.*html$ {
90
95
add_header Vary "Accept-Encoding, Cookie";
You can’t perform that action at this time.
0 commit comments