-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache: selective resource caching #495
Comments
Processing of these configuration directives is implemented, along with supporting and interface functions. Related to #495.
Lets consider this example which should give an idea how the operation should work:
1st line defines overall cache mode: switched on/of. If Lines 3 and 4 defines default policy. If they don't match, then do not do any caching. This means that cache isn't checked at all for the request and corresponding response also isn't stored in the cache. Few examples:
More notes about other caching directives. #494 defines which methods are cacheable and which aren't. Request method is simple integer and there is bitmask for the allowed methods, so it's efficient to check request method before location and any caching directives: if the method shouldn't be cached, then request isn't processed by cache and location and Next, there are HTTP cache control headers, e.g. However, default behavior must be do not cache. This is absolutely strong requirement because caching can break an application (just imagine if some dynamic web chat is cached by some mistake - all the chat users won't see new messages!). Next thing is security - if we cache something sensitive by mistake, we can provide huge security flaw. So by default we should not cache. An administrator must explicitly and very carefully specify what to cache. If he/she want's default policy to cache everything, they should explicitly set |
Processing of these configuration directives is implemented, along with supporting and interface functions. The cache works according to these directives now. Related to #495.
Processing of these configuration directives is implemented, along with supporting and interface functions. The cache works according to these directives now. Related to #495.
Processing of these configuration directives is implemented, along with supporting and interface functions. The cache works according to these directives now. Related to #495.
Processing of these configuration directives is implemented, along with supporting and interface functions. The cache works according to these directives now. Related to #495.
Processing of these configuration directives is implemented, along with supporting and interface functions. The cache works according to these directives now. Related to #495.
Processing of these configuration directives is implemented, along with supporting and interface functions. The cache works according to these directives now. Related to #495.
We must be able to cache or bypass the cache selectively depending on resource URI. Following configuration must be used to fulfill a request from the cache (also please refer #471 since the extension is required for Web-server mode):
It's also required to be able to bypass cache for specific URLs:
Simple array-based matched should be implemented. Array could be limited by 32 or 64 items.
location
isn't mandatory grouping. Rather, it's just a base for grouing HTTP management directives. In this caselocation
just help to match prefix and suffix of URI. Socache_bypass
andcache_fulfill
can be defined at top level of configuration file.The text was updated successfully, but these errors were encountered: