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

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
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
proxy_no_cache $nocache;