Cache Extend
Contents |
Cache Extend
Synopsis
This module extends the caching function of the original nginx proxy-like module. It supports caching responses by content type. If no following directives are specified, the behavior will stay the same as original nginx.
Directives
proxy_cache_types
Syntax | proxy_cache_types mime-types ...; |
Default | text/html |
Context | Location |
Specified types of responses will be cached.
Example:
proxy_cache_types text/css;
text/html is set by default.
fastcgi_cache_types
Syntax | fastcgi_cache_types mime-types ...; |
Default | text/html |
Context | Location |
Specified types of responses will be cached.
Example:
fastcgi_cache_types text/css;
text/html is set by defautl.