This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/docker/nginx/conf.d/include/proxy-cache-downloads

13 lines
506 B
Plaintext
Raw Normal View History

2020-09-01 13:26:48 +00:00
add_header X-Proxy-Cache $upstream_cache_status; # add response header to indicate cache hits and misses
# bypass - this will bypass cache hit on request (status BYPASS)
# but still stores file in cache if cache conditions are met
2022-03-14 17:50:24 +00:00
proxy_cache_bypass $cookie_nocache $arg_nocache "1";
# no cache - this will ignore cache on request (status MISS)
# and does not store file in cache under no condition
set $nocache "1";
# disable cache when nocache is set or skyd cache is enabled
2022-03-14 17:47:14 +00:00
proxy_no_cache $nocache;