Since most of CDNs update the cache data only after it reaches an expiry, what if the origin server is updated before that. Does the CDN serve the old data until updated upon expiry?
How regularly is the cached content updated from origin server in CDN?
812 views Asked by fractal397 At
2
There are 2 answers
0
maha_funk
On
Yes, the CDN will serve the older content even when the origin is updated. This is because no one really told the CDN that there is an updated asset at the origin.
There are a couple of ways you can make sure the CDN always has the latest asset cached. The easiest way is to purge the cache each time there is a new/updated asset. This can be built into your CI/CD pipeline so that there is an auto-purge each time you deploy a new version
The other way I've seen a lot of people do is to have a version as part of the URL itself. So that when the asset is updated, it would have a new version as part of the object name. So when the browser makes a request, it is automatically requesting the new object.
Hopefully, this helps.
Related Questions in AMAZON-CLOUDFRONT
- How to set custom Origin Name in AWS CDK for CloudFront
- Switch to Cloudfront CDN causing issues for small number of users
- How can I reconfigure CodeIgniter (v4) to serve with a new sub-directory path (via nginx)?
- Cross account origin change in lambda edge
- CloudFront Not Using SimpleCORS Policy
- Hosting multiple static sites programmatically
- Cant retrieve headers from network source type "Fetch/Redirect"
- Miss From Cloudfront: X-cache
- Custom Header from Network Request not being retrieved with fetch API
- Issues in connecting AWS Cloudfront to app hosted on AWS Elastic beanstalk
- JavaScript function not updating value after a while loop
- I am getting net::ERR_SSL_PROTOCOL_ERROR when my frontend that is running on AWS s3 bucket with cloudfront try to connect my backend on EC2 server
- Triggering lambda edge in Cloudfront origin response flow only for specific files
- Why does puppeteer timeout from lambda when calling a cloud front url?
- Use custom url with S3 uploads plugin for wordpress to AWS cloudfront
Related Questions in CDN
- CDN Detector Extension / Script
- Vite Serving Libraries without CDN
- Use Next.js project as a script tag in html file
- Serve static site on S3 + CloudFlare with Apache retaining the source URL
- Sellapp integration with React
- Is a CDN service worth it for storing images or can I use the MongoDb and my server to serve them?
- Azure CDN and caching control show TCP_MISS
- Next.jS SSG on s3bucket doesn't work on refresh
- I want to cache cloud function data in to cdn. Whatever i tried is caching in browser only
- How to get statistics about uri in azure
- Can't import PrimeVue InputOpt in CDN project
- how to reduce the website image to 2-5kb per for an ecommerce website?
- CDN for asset delivery with auth, locally run and CI support
- Can't render DataTable using Vue and PrimeVue from CDN
- How can I publish a reusable react component into CDN?
Related Questions in CLOUDFLARE
- My Blazor UI is not responding on a domain, but working on another domain
- I created a domain name from cloudflare, and Hoisted my static site hosted in google firebase, error in adding custom domain in firebase
- Cloudflare not respecting Cache-Control
- Angular application loading weirdly when I add "/" at the end of URL
- Primeng Angular styles on subdomain don't work
- Cookies not accessible when I fetch in Astro frontmatter
- Scrape Glassdoor data with selenium
- Serve static site on S3 + CloudFlare with Apache retaining the source URL
- JS doesn't put cookies after domain change for localhost
- Rewrite subdomain to subpath of another subdomain
- How to get geolocalisation , request from AWS API Gateway?
- How should I enable my AWS API gateway use a custom domain?
- Hosting multiple static sites programmatically
- Framework error on cloudflare global network
- Unable to update cloudflare split tunnels using python and api token
Related Questions in AKAMAI
- command is working fine inside the docker container but not working in dockerfile when building image
- Akamai PowerShell Module: add-PropertyHostnames error
- updated content only loads on hard refresh, else it loads old content
- Node http-request module returns 503s from google query
- How to install Akamai and NetStorage CLI on Ubuntu using Docker?
- How to get active alerts from Akamai using PowerShell?
- akamai pipeline save cannot write to dist
- XERO API Returns HTTP 503 when sending multiple invoices in one requests
- CURL returns a successful response, but "requests" - 403
- Allow nginx to send strong etag after gzipping
- How to integrate Akamai FastPurgeAPI into AEM using Java code?
- Data-Transer increased after migrating to EKS
- Rewrite url for the final path using CDN
- Issue in java code while purging cached url's in Akamai
- Can modern Web Application Firewalls (WAFs) detect requests originating from intercepting proxies
Related Questions in FASTLY
- Magento 2, Fastly and S3 bucket integration
- Is there a way to split a long line of code in VCL?
- Varnish cache problem after upgrading Symfony 6.2 to 6.3 (Google Cloud via Fastly)
- Varnish/Fastly - Georedirecting All Site URLs to One Page Except for the Store Locator
- How to Pass Pushpin Pod Instance Details When Invoking Backend Service Defined in Pushpin Config Routes
- CORS rejecting requests from Fastly endpoint
- Prevent pipeline in Rails 7 application from caching service-worker JS for PWA
- acme-challenge conflict with TXT record
- 502 error when using AWS Amplify as a Fastly backend
- Detect user location in React app, Can Fastly be used with Non Server Side Rendering react app?
- How can I use ESI tag for html script including?
- Disable fastly cache on individual request
- Fastly - error page detect and serve from specific server
- Obtain error cause inside Fastly vcl_error subroutine
- How to perform Wasm host call from a Go guest?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Generally they have a callback method for you to let them know if a content changed and needs to be updated/re-cached. So it won't serve the old content until the next refresh.
You can see the documentation for Cloudflare-Purge Cache and Azure.