Benjamin Morel
2017-12-06 15:11:34 UTC
Hi guys, I'm using ATS as a forward proxy, to provide a local cache to my
application.
When accessing a private file on Amazon S3, an Authorization header is
sent, and ATS does not cache the response.
This is clearly documented
<https://docs.trafficserver.apache.org/en/latest/admin-guide/configuration/cache-basics.en.html#client-directives>
:
By default, Traffic Server does not cache objects with the following
CONFIG proxy.config.http.cache.ignore_client_no_cache INT 1
But this still does not make it ignore the Authorization header, as far as
I can see.
Plus, *I do not want to ignore the Cache-Control header*, just
Authorization.
Is there a configuration entry to make ATS ignore the Authorization header?
Thanks in advance,
Benjamin
application.
When accessing a private file on Amazon S3, an Authorization header is
sent, and ATS does not cache the response.
This is clearly documented
<https://docs.trafficserver.apache.org/en/latest/admin-guide/configuration/cache-basics.en.html#client-directives>
:
By default, Traffic Server does not cache objects with the following
Authorization
Cache-Control: no-store
Cache-Control: no-cache
To configure Traffic Server to ignore this request header, refer to Configuring
Traffic Server to Ignore Client no-cache Headers
<https://docs.trafficserver.apache.org/en/latest/admin-guide/configuration/cache-basics.en.html#configuring-traffic-server-to-ignore-client-no-cache-headers>
.
I followed the only suggestion in the documentation:Cache-Control: no-store
Cache-Control: no-cache
To configure Traffic Server to ignore this request header, refer to Configuring
Traffic Server to Ignore Client no-cache Headers
<https://docs.trafficserver.apache.org/en/latest/admin-guide/configuration/cache-basics.en.html#configuring-traffic-server-to-ignore-client-no-cache-headers>
.
CONFIG proxy.config.http.cache.ignore_client_no_cache INT 1
But this still does not make it ignore the Authorization header, as far as
I can see.
Plus, *I do not want to ignore the Cache-Control header*, just
Authorization.
Is there a configuration entry to make ATS ignore the Authorization header?
Thanks in advance,
Benjamin