-
Notifications
You must be signed in to change notification settings - Fork 18
Frontend ‐ CDN
The napari hub uses a Content Delivery Network (CDN) to cache HTML responses from the frontend server so that the content is highly available and performant across different geographies. This enables us to serve the hub from different countries around the world so that users in or near those countries can access the content faster than if it was served from only the US.
We use AWS CloudFront for serving content from production (https://napari-hub.org) and staging (https://staging.napari-hub.org). However, dev deployments do not have CloudFront enabled so that we don’t use CDN resources since dev environments can be created and destroyed at anytime.
We currently cache the following URL patterns for the hub:
URL Pattern | Duration |
---|---|
/_next/static/* | 1 day |
*.png | 1 day |
/_next/data/* | 5 min |
/ | 5 min |
/plugins/* | 5 min |
/collections/* | 5 min |
See this link for CloudFront configuration.