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.
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
|
2022-01-03 15:38:51 +00:00
|
|
|
|
|
|
|
# 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";
|
2022-01-03 15:38:51 +00:00
|
|
|
|
|
|
|
# no cache - this will ignore cache on request (status MISS)
|
|
|
|
# and does not store file in cache under no condition
|
2022-03-14 17:45:04 +00:00
|
|
|
set $nocache "1";
|
2022-02-10 13:50:36 +00:00
|
|
|
|
|
|
|
# disable cache when nocache is set or skyd cache is enabled
|
2022-03-14 17:47:14 +00:00
|
|
|
proxy_no_cache $nocache;
|