-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Fix Version/s: 10.3
-
Component/s: Web Common, Web UI
-
Release Notes Summary:Improved caching strategy
-
Epic Link:
-
Browser:
-
Upgrade notes:
-
Sprint:nxGang Sprint 10.3.1, nxGang Sprint 10.3.2, nxGang Sprint 10.3.3, nxGang Sprint 10.3.4
-
Story Points:2
Since NXP-23026 and https://github.com/nuxeo/nuxeo/commit/d13bb493d6f17f4cb4abc4d9fb61c7ff08b7fbe6, the server sends in all response the no-store http header which prevents the browser from leveraging the eTag.
As a direct results, Web UI is fetching and refetching far too many resources such as thumbnails, previews, and blob throuhg nxfile servlet path (for pdf viewer for instance).
I understand we don't want to display obsolete resources when for instance we edit a document to change its main blob, we want the change to be reflected asap in the preview (and do not display the old preview).
However, since the tomcat sends the eTag of the resource, we should make the browser leverage the If-None-Match http header to check if its locally cached resource is up to date and only download it again if obsolete.
Setting cache to true but cacheTime to 0 will make the browser send the If-None-Match: xxxxx where xxxx is the previously received eTag.
Useful reading BTW: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching
- is related to
-
NXP-23439 Preview is not updated after using direct edit
- Resolved
-
NXP-25100 Fix JSF performance issue due to lack of cache on browser side
- Resolved
-
NXP-25700 Add service worker to allow for more agressive cache
- Resolved
-
NXBT-2398 Fix nightly Apache front cache config
- Resolved
-
NXP-26411 Thumbnail redirect is cached for a longer period of time than the S3 link validity
- Resolved
-
NXDOC-1588 Add a Web UI doc about performance tweaks to promote scalability
- Resolved
-
NXP-25595 Cache invalidation of lazy loaded elements is inconsistent
- Resolved
-
NXS-4978 Automated document type label translation failed on 10.2
- Resolved
-
ELEMENTS-726 Fix nuxeo-document-preview performances
- Resolved
-
NXP-25139 Update cache headers for Web UI static resources
- Resolved
- is required by
-
NXP-28815 Fix ThumbnailJsonEnricherTest on MongoDB
- Resolved
-
NBM-915 Upgrade to 10.3
- Open
-
NBM-789 Cloud front improvments : caching, alerts, etc
- Resolved