Line 1537 of o.a.c.c.Response.doIsEncodeable() checks that the URL context matches the webapp context:
if ((file == null) || !file.startsWith(contextPath))
There are use cases where a URL would need to be rewritten but not be the same context as the webapp. In addition, Weblogic apparently does not make this check, so it is an issue migrating from Weblogic.
Can we remove this check, or add a flag where it can be configured to be removed?