jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Pokhilko <a...@ya.ru>
Subject Re: Caching of http responses with Vary header
Date Thu, 15 Jun 2017 20:23:35 GMT
Hi,

Yes, we had this issue addressed in
https://bz.apache.org/bugzilla/show_bug.cgi?id=58079 but in very
"specific" way - by disabling caching for pages that have Vary header.
Good to have this addressed, I'm glad to join the effort of fixing it,
if needed, just let me know.

IMO, there should be way to improve Vary header handling without much
overhead. For example, make cache items to have several keys for same
content, using header value as part of the key. I think it's something
like you describing.

Regarding inconsistencies we have 2 ways, one is to be strict
RFC-conforming, another is to be more browser compliant (browsers
sometimes forgive RFC non-conformance). I think starting with RFC
support is good, at least 80/20 solution.

IMO http/2 has to be addressed separately, 'cause it raises much larger
architecture questions.

Andrey Pokhilko

On 06/15/2017 12:46 PM, Felix Schumacher wrote:
> Hi all,
>
> we currently have one issue
> (https://bz.apache.org/bugzilla/show_bug.cgi?id=61176) asking for
> caching of http responses with a "Vary" header. And I think we had one
> question about it recently on one of the mailing lists.
>
> If we want to support such a feature, we would have to place the call
> for CacheManager#inCache after we filled the request with all headers.
> At the moment we get the url, only.
>
> The cache would have to be changed to support multiple responses
> (depending on the Vary header).
>
> What happens when a server responds inconsistently with a Vary header
> (includes it sometimes for a url and leaves it off sometimes)?
>
> What are your thoughts on the problems?
>
> We probably should also look at httpclient 5 with respect to http/2,
> as I think it will influence the cache manager, too.
>
> Regards,
>  Felix
>


Mime
View raw message