NASA-IMPACT / veda-config

Configuration template for the Dashboard Evolution Project
https://visex.netlify.app/
Other
18 stars 37 forks source link

Fixing the cache max age during the deployment to an S3 #396

Closed amarouane-ABDELHAK closed 6 months ago

amarouane-ABDELHAK commented 6 months ago

The PR contains setting the max-age=30, must-revalidate, s-maxage=60 parameters to force the reloading of asset files when necessary. This line ensures that the resource is cached for up to 30 seconds for individual clients, but shared caches must revalidate it after 60 seconds to ensure it remains fresh. The must-revalidate directive enforces revalidation once the resource becomes stale, regardless of whether it's in an individual or shared cache.

netlify[bot] commented 6 months ago

Deploy Preview for visex ready!

Name Link
Latest commit ead1f6819acc9bb26f2a43eed4c1c737981f1942
Latest deploy log https://app.netlify.com/sites/visex/deploys/664371308ea8e50008aa3d92
Deploy Preview https://deploy-preview-396--visex.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.