-
Notifications
You must be signed in to change notification settings - Fork 848
Updated documentation and added test coverage for some caching behavior #9282
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
Conversation
- no-store and no-cache cache-control directives in request/response - authorization headers - cookie-related request/response
|
[approve ci] |
bneradt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. I just have a few simple word-smithing suggestions for the docs.
Thanks for adding test coverage for these cases.
Make it clear that what ATS would ignore with ignore_client_no_cache and ignore_server_no_cache.
bneradt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
|
Marking for 9.2.x since this is a helpful doc and test-only change. |
* update documentation for certain cache behaviors * remove trailing whitespaces * reformated the doc * Fixed typo * Update doc for ignore_client_no_cache and ignore_server_no_cache Make it clear that what ATS would ignore with ignore_client_no_cache and ignore_server_no_cache. Co-authored-by: Zhengxi Li <zhengxi.li@yahooinc.com>
* asf/9.2.x: Updated ChangeLog Documentation-only changes from apache#9282 for 9.2.x (apache#9291) Fix a crash from a server early abort (apache#9287) Skip dns_host_down autest from 9.2.x branch (apache#9286)
#5876 points out some mismatches between the documentation and the current behavior of ATS caching.
added coverage
Added AuTest coverage for caching behavior in the following areas to verify behavior:
documentation
The documentation is updated with the following changes:
Expiresormax-ageheaders to cacheno-cacheandno-storedirectivesAuthorizationheader from the list that ATS by default doesn't cache(since it's cached per testing)proxy.config.http.cache.ignore_authenticationis set to1, the response containing the header would be cachedpragmaandcache-controldirectives that ATS ignores when ignore_client_no_cache or ignore_server_no_cache is enabledAuTest failure
The newly added
ResponseCacheControlIgnoredTestis failing, indicating that there are some issues with theproxy.config.http.cache.ignore_server_no_cacheconfiguration. The test verifies that ATS ignores theno-cacheandno-storein responses when asked to do so.