]> git.sven.stormbind.net Git - sven/scripts.git/commit
nginx config to set cache-control response header based on a cc request header
authorSven Hoexter <sven@stormbind.net>
Sun, 2 Dec 2018 10:15:02 +0000 (11:15 +0100)
committerSven Hoexter <sven@stormbind.net>
Sun, 2 Dec 2018 10:15:02 +0000 (11:15 +0100)
commit6e299d8972a76bdddc703c58a98c724ff8e67746
treec39607d5992e981f87153314cc3004a87369465e
parent9f2cba27b070a480756edb80d3fc0a76ca7c407f
nginx config to set cache-control response header based on a cc request header

Looks out for the request HTTP header "cc", if it's set it takes the header
values verbatim and uses them as the value for a "cache-control" response header.
Allows for a dynamic evaluation of a CDN caching configuration.
nginx/set_cache_control.conf [new file with mode: 0644]