openresty / srcache-nginx-module

Transparent subrequest-based caching layout for arbitrary nginx locations.
http://wiki.nginx.org/NginxHttpSRCacheModule
475 stars 105 forks source link

Question: Does SR Cache obey content-type headers/content negotiation? #57

Open SeanHayes opened 8 years ago

SeanHayes commented 8 years ago

If I have an HTML page cached, and a client requests that URL but with Accept: image/*, will SR Cache return the HTML file or allow regular processing to happen?

agentzh commented 8 years ago

@SeanHayes ngx_srcache only honors your cache key in this case. And I think it's easier for you to just try it out yourself ;)