In general, most (if not all) Header modifications are encouraged to be done
using plugin API.
ts_lua or header_rewrite are a couple of such plugins that are bundled in the
repo to provide certain type of Header operations amongst other things, but,
there are instances where people still write t
Thanks for your comment.
The following is my understanding of what you said.
For example, I will ignore the max-age parameter and limit s-maxage to 60.
If the response from origin server contains the headers like:
< Cache-Control: s-maxage=180, max-age=360
Then I modify headers in READ_RESPONSE
blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px
#715FFA solid !important; padding-left:1ex !important; background-color:white
!important; } Hmm..it should be possible to do what you need with a plugin.
For instance, going back to the solution you tried, perhaps you coul
I tried and found that when I modify headers in TS_HTTP_READ_RESPONSE_HDR_HOOK,
the cached object has those modified headers, so when the next time a
request comes in,
the cached response with the modified headers is served.
This is not what I want. My requirement is to serve cached objects
with t
I read the mail you refer to.
I understand that I can achieve my requirement with the following steps:
1. In TS_HTTP_READ_RESPONSE_HDR_HOOK, remove Expires and
Cache-Control: max-age headers and keep the values in the request
context.
2. In TS_HTTP_SEND_RESPONSE_HDR_HOOK, restore Expires and
Cache
Er..Sorry, I realize that email thread is doing the opposite of what you are
asking..but, nevertheless, the fact that CC headers can be modified during
READ_RESPONSE_HDR_HOOK and still impact the cache-ability of the response,
still holds and you can flip them the way you want.
On Tuesday, Ap
>>> Can we specify whether a content is cacheable or not in
>>> TS_HTP_READ_RESPONSE_HDR_HOOK?
Yes, I believe so - there are a couple of techniques mentioned in the below
email thread to do that..please give either a shot and let us know if it works
for your usecase..
http://mail-archives.apac
Thanks for your resonses.
2016-04-27 0:21 GMT+09:00 Leif Hedstrom :
>
>> On Apr 26, 2016, at 8:48 AM, Sudheer Vinukonda
>> wrote:
>>
>> Can you pls create a jira with the requirement and proposed solution?
I created a jira issue.
https://issues.apache.org/jira/browse/TS-4386
>> Btw, reading th
> On Apr 26, 2016, at 8:48 AM, Sudheer Vinukonda
> wrote:
>
> Can you pls create a jira with the requirement and proposed solution?
> Btw, reading the email, this seems like something that can be achieved via a
> plugin API.
Agreed. Some thoughts has to be put into this, to make sure that we
Can you pls create a jira with the requirement and proposed solution?
Btw, reading the email, this seems like something that can be achieved via a
plugin API.
Thanks,
Sudheer
On Monday, April 25, 2016 6:18 PM, Hiroaki Nakamura
wrote:
Hi all,
I would like to add configs to ignore serve
Hi all,
I would like to add configs to ignore server Cache-Control: max-age and Expires.
In my use case, I would like to let origin server administrators to
use just Cache-Control: s-maxage
to control whether the contents are cacheable.
I am planning to create a CDN service and I would like to si
11 matches
Mail list logo