In CompressedHttpServletResponseWrapper.java setETagHeader(), webutilities
currently appends "gzip" if the response is compressed, I'd like an option to
either disable the "-"+compressedContentEncoding append, or strip it off in the
RequestWrapper before handing off to the servlet.
When we serve resources via the Tomcat default servlet instead of the
MergeServlet, but still compress them with the filter, the servlet doesn't
recognize the Etag so a 304 not modified header is never sent.
I currently just modified the method to never append -gzip... I agree it may
feel a little dirty because the response isn't technically the same as the
original etag, but since it's just compression, it seems like a workable
solution.
Original issue reported on code.google.com by inta...@gmail.com on 20 Aug 2014 at 9:27
Original issue reported on code.google.com by
inta...@gmail.com
on 20 Aug 2014 at 9:27