1
0
mirror of https://github.com/trambarhq/relaks-wordpress-example.git synced 2025-09-03 05:02:34 +02:00

Moved Cache-Control into Node code.

Fixed typo in image link handling code.
This commit is contained in:
Chung Leong
2019-02-12 13:53:53 +01:00
parent 69fcdf7cbc
commit 2260a6f31b
7 changed files with 6 additions and 8 deletions

View File

@@ -23,12 +23,10 @@ server {
proxy_cache_key $uri$is_args$args;
proxy_cache_min_uses 1;
proxy_cache_valid 400 404 1m;
proxy_hide_header Cache-Control;
proxy_ignore_headers Vary;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Expose-Headers X-WP-Total;
add_header Cache-Control "public,max-age=0";
add_header X-Cache-Date $upstream_http_date;
add_header X-Cache-Status $upstream_cache_status;
}