mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
help: Move /help/_astro/ cache headers config inside /help block.
Having a separate block was redundant since moving /help/_astro/ inside location /help means that it can inherit its alias and we don't have to re-declare it.
This commit is contained in:
committed by
Alex Vandiver
parent
4739c4b057
commit
55b19b6383
@@ -42,14 +42,12 @@ location /help {
|
||||
error_page 404 /404.html;
|
||||
index /index.html;
|
||||
try_files $uri $uri/index.html =404;
|
||||
}
|
||||
|
||||
# These files are hashed and thus immutable; cache them aggressively.
|
||||
# https://github.com/withastro/docs/blob/53603ad048e8aedbca1aed77bac8eb00dcada79d/src/content/docs/en/guides/integrations-guide/node.mdx?plain=1#L304
|
||||
location /help/_astro/ {
|
||||
set $help_cache_alias "${help_alias}_astro/";
|
||||
alias $help_cache_alias;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
# These files are hashed and thus immutable; cache them aggressively.
|
||||
# https://github.com/withastro/docs/blob/53603ad048e8aedbca1aed77bac8eb00dcada79d/src/content/docs/en/guides/integrations-guide/node.mdx?plain=1#L304
|
||||
location /help/_astro/ {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
}
|
||||
}
|
||||
|
||||
# Send longpoll requests to Tornado
|
||||
|
Reference in New Issue
Block a user