Right now, the Purge script in the directory scripts/purge/index.js parses the sitemap sitemap.xml and purges all the URLs without performing any diff operation over them, which leads, to a lot of inefficiency as the URLs which don't have any change in the content are also purged from the cache.
This issue proposes to entertain a diff approach for the url which compares the recent build with the already there site in the cache. This way, we would only need to purge the urls which have a change in content, making the site even more efficient.
Right now, the Purge script in the directory
scripts/purge/index.js
parses the sitemapsitemap.xml
and purges all the URLs without performing any diff operation over them, which leads, to a lot of inefficiency as the URLs which don't have any change in the content are also purged from the cache.This issue proposes to entertain a diff approach for the url which compares the recent build with the already there site in the cache. This way, we would only need to purge the urls which have a change in content, making the site even more efficient.