We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45ca9a commit 3152de3Copy full SHA for 3152de3
salt/docs/config/nginx.docs-redirects.conf
@@ -185,6 +185,16 @@ location ~ ^/((2|3)(\.[0-9]+)?|dev)/\w+/[\d\w\.]+(?!\.html)$ {
185
if (-f "${request_filename}.html") {
186
return 301 https://$host:$request_uri.html;
187
}
188
+ add_header Surrogate-Key en/$1 always;
189
+}
190
+
191
+# Add the Surrogate-Key for bulk CDN purging
192
+# xref https://docs.fastly.com/en/guides/working-with-surrogate-keys
193
+location ~ ^/((2|3)(\.[0-9]+)?|dev)/ {
194
195
196
+location ~ ^/(es|fr|id|it|ja|ko|pl|pt-br|tr|uk|zh-cn|zh-tw)/((2|3)(\.[0-9]+)?|dev)/ {
197
+ add_header Surrogate-Key $1/$2 always;
198
199
200
# Map old, 2.5-and-earlier directory names to 2.6-and-later names.
0 commit comments