I am planning to run
PageSpeed Insights command line tool after every deploy to repopulate cached files before visiting them in browser to prevent first visitors slow load. Does cloudflare cache files this way?
This is the tool I want to use: https://github.com/GoogleChromeLabs/psi
Command line example:
It only populates that page’s resources, and only at the datacenter closest to the app hitting that URL. So if I want to repopulate my local org’s site, I need to Page Test from the city closest to me (hopefully there is a city close to me).
Remember that just because you repopulated the cache, that file can still get kicked out of the cache after a few days if nobody else visits it.
This topic was automatically closed after 30 days. New replies are no longer allowed.