[
https://issues.apache.org/jira/browse/SHINDIG-586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hjelmstad closed SHINDIG-586.
----------------------------------
Resolution: Later
Too big a pain right now. The side effects associated with storing checksum in
headers would require that .equals() changes to ignore that particular header,
toString() doesn't emit it, etc. To get these right would be more costly than
it's worth right now. I created a patch for this (which I'll attach for
posterity), but will not be applying it.
> Avoid repeated checksum generation for cached HttpResponses by storing
> checksum in HttpResponse object.
> -------------------------------------------------------------------------------------------------------
>
> Key: SHINDIG-586
> URL: https://issues.apache.org/jira/browse/SHINDIG-586
> Project: Shindig
> Issue Type: Improvement
> Components: Gadget Rendering Server (Java)
> Reporter: John Hjelmstad
> Assignee: John Hjelmstad
>
> CachingContentRewriterRegistry uses checksums to generate rewritten-content
> cache keys. In the case of HttpResponse rewriting, in practice the vast
> majority of rewrites - and rewritten content cache lookups - are made using
> cached HttpResponse objects.
> To avoid recomputing checksum for each of these requests simply to look up,
> we can store checksum as a special header on HttpResponse (which is not
> serialized on output) before caching it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.