-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jetty 12 : precompressed content support for
ResourceService
(#8595)
* Remove Resource.getWeakETag in favor of new EtagUtils * Protect bad usages of CachingContentFactory * Working precompressed content for ResourceService * Fixing DefaultServlet handling of ResourceService.writeHttpError() overrides * Protect NPE in CachingContentFactory.isValid() * Complete callback in DefaultServlet.writeHttpError * Addressing review comments * Testing for whole content * Improve MemoryResource handling of name/filename * EtagUtils handling of Resource * Better protection of bad Resource impls in EtagUtils * Update CachingContentFactory + Using Resource.lastModified were possible + CachingHttpContent has better Resource protection, and uses Etag from delegate + CachingHttpContent uses delegate where possible. + Store Etag HttpField in CachingHttpContent and allow override in constructor * Simpler CachingHttpContent.isValid() * Better handling of PrecompressedHttpContent Signed-off-by: Joakim Erdfelt <[email protected]>
- Loading branch information
Showing
18 changed files
with
853 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.