2d88fdf386
Refactored the DefaultServlet to better handle static gzipped files with etags in the cache. Required a simplification of always having a HttpContent rather than the prior situation of having either a Resource or a HttpContent. So introduced a HttpContent.Factory, of which the ResourceCache is the normal implementation, but there is also now a ResourceContentFactory that creates content when there is no cache. The Gzip resource is now associated with the normal resource, so less lookups are needed. This also give scope for caching dynamic gzipping in the future. The GzipHttpContent class has been introduced to send content with the headers of the uncompress, but content of the compressed resource. |
||
---|---|---|
.. | ||
src | ||
pom.xml |