Preload by Agence Web Performance

Topic · 6 items

Caching

This page brings together everything Preload has published on caching: browser cache, page cache, CDNs and purge rules. It is for anyone who wants to serve fast without serving stale content. I follow what changes in plugins, CDNs and browsers, and above all the pitfalls that leave the origin unprotected.

Follow this topic By RSS, in your feed reader

Preload #06 ·

Perfmatters 2.7 caches HTML at Cloudflare's edge, free plan included

Perfmatters, until now an optimization plugin without page caching, added a Cache tab in beta on November 12: disk page cache, cache warming and “Cloudflare edge cache”. The latter serves HTML to anonymous visitors from Cloudflare's servers without APO or a Worker, free plan included: the plugin creates the zone's Cache Rules itself through an API token, and approves each cacheable page with a CDN-Cache-Control header.

That puts it alongside FlyingPress among plugins that can compete with a full solution such as WP Rocket. All options are off by default, the edge TTL is 30 days, and the disk cache switches itself off on hosts that already cache pages (Kinsta, WP Engine, WordPress.com and others).

Next step

Test it on a site where no other plugin manages Cloudflare rules (FlyingPress or Super Page Cache), with a token scoped to the zone, then run curl -sI twice: cf-cache-status should go from MISS to HIT. On sites whose forms carry a WordPress nonce, keep the edge TTL under 12 hours, as the vendor advises.

A real alternative to APO on the free plan, but with three pitfalls we found in the 2.7.0 code: “Clear Cache” purges the whole Cloudflare zone (every subdomain, static files included), purge calls are fired without waiting for the response and can get lost, and the warmer does not fill Cloudflare, whose rule excludes its requests. We will wait for the beta to end before rolling it out on a store, and certainly not ten days before Black Friday.

Read the source

Preload #06 ·

Moving behind a CDN without overloading the origin or dropping out of Google

On November 11, Google Search Central described a counterintuitive effect of switching on a CDN: the site responds faster, Googlebot speeds up its crawling, but the cache is still empty, so every crawled URL goes to the origin, which can saturate. Another trap: bot protection enabled site-wide makes Googlebot fail the challenge, and the affected pages can drop out of the index.

Google recommends warming the cache, letting verified bots through and, if the origin still saturates, answering with 429 or 503 for a few hours, one to two days at most: beyond that, URLs may be removed from the index.

Next step

Before the switch, warm at a controlled pace your most visited pages, those of your next peaks (sales, seasonal) and the most crawled URLs, taken from the Crawl Stats report in Search Console. Add not cf.client.bot to any broad Cloudflare challenge or block rule, and keep 429 or 503 as a short-lived brake.

What the post leaves out: Cloudflare caches neither HTML nor JSON by default, so a CDN left on default settings never shields the origin from the pages Googlebot requests (cf-cache-status: DYNAMIC shows it). Bot Fight Mode, on the free plan, cannot be bypassed by any WAF rule: a cache warming tool can end up blocked by it.

Read the source

Preload #06 ·

Prebid 11.48: a URL that changed on every view defeated its manifest cache

Prebid.js is the open source client-side header bidding library that many ad networks and advertising platforms build into their tags: plenty of sites that show ads load it without knowing. Since 11.40, which introduced its bundle.js loader served from jsDelivr, it requested its manifest under a URL with a random callback name appended (manifest.js?callback=…). The file was served as immutable for a year, yet downloaded again on every page view: 169 KB raw, 67 KB with Brotli for 11.46. Version 11.48.0, released on November 9, makes the URL stable, so the manifest is cached from the second view on.

Version 11.47 also removes bidder user sync iframes 15 seconds after insertion (configurable through userSync.removeIframes), and 11.48 fires adRenderFailed when a renderer fails to load.

Next step

If your sites load Prebid through jsDelivr's bundle.js, directly or through your ad network's tag, upgrade to 11.48 or ask the network which version it ships, then check in DevTools (Network panel, second page view) that manifest.js comes from cache. A custom Prebid build is not affected.

The lesson goes beyond Prebid: a URL that changes on every view defeats any caching policy, immutable included, and the cost of an ad stack does not stop at the bidders' scripts. Our test bench (Chrome 157, Playwright's WebKit and Firefox) confirmed the effect on 11.46.0; with 11.48, the first view still weighs about 41 KB in Brotli.

Read the source

Preload #06 ·

Spacefast: Automattic hosts what your AI agents publish

Automattic officially introduced Spacefast on November 9, hosting designed for sites and apps built by AI agents. You publish from Claude, ChatGPT or Cursor through MCP, from the command line (npx spacefast publish) or with a Git push: static sites, Next.js, Astro, TanStack Start or PHP, with a database, file uploads and analytics built in. Each space is private by default and versioned on every change.

Commercial use is allowed, free plan included (20 spaces, $1 of usage per month). Sign-ups have been open since late September with no waitlist; built-in authentication and transactional email are still in private beta. The platform runs on the same infrastructure as WordPress.com and WP Cloud.

Next step

For your agents' prototypes and mockups, try it instead of leaving demos lying around on an agency server. Check the caching: HTML is kept 10 minutes at the edge (s-maxage=600), each publish purges the whole host, and the edge ignores Vary, so you cannot vary HTML by header.

Handy for a prototype, not yet for a client site: an app built on Spacefast's database and authentication does not move elsewhere easily.

Read the source

Preload #05 ·

Bots are expensive wherever the cache can't see them

On November 4, WP Engine explained waves of 500 errors on its shared servers with no traffic spike: bots were crawling deep archives, pagination and filtered views at scale, rarely cached, and tying up every PHP worker. Every uncached request is now classified as human or automated, and bots go through a server-wide queue that never takes more than 80% of the workers.

The change is rolling out to premium and dedicated environments next. WP Engine hasn't published its classification criteria or any results.

Next step

In your access logs, sort the uncached requests only (admin-ajax.php, ?wc-ajax=, cart, search) by user agent. Block the bot hitting those actions with a firewall rule scoped to those URLs and to methods other than GET and HEAD, leave content pages open, and extend cache lifetimes for archives and pagination.

In September, on a WooCommerce store we look after, Meta's AI crawler (meta-externalagent/1.1) was running JavaScript and following add-to-cart and remove-from-cart links; as a “verified” bot, it got past Cloudflare's default protections. A custom rule limited to uncacheable actions blocked 1,087 requests in the first hour and cut the bot from roughly 1,900 to 2,800 origin requests per hour down to a few dozen. WP Engine's cap protects your server neighbors, not your store from its own bots.

Read the source

Preload #01 ·

deliveryType finally tells you when a resource came from cache

Firefox 158, out on October 13, supports PerformanceResourceTiming.deliveryType, which returns "cache" when a resource was served from the cache. Chrome and Edge have exposed it since version 117 and Safari since 26.4, so all four engines will have it, but its Baseline status has not been updated yet.

Not Baseline yet: Chrome 117, Safari 26.4, Firefox 158

Next step

In your field data, split cached resources from the rest before reading their timings, otherwise your averages mix two very different populations.

Read the source

Eroan Boyer
Founder of Agence Web Performance

What comes next, Tuesday morning.

Items on this topic land in Preload every week, two weeks before they go public. Free, one-click unsubscribe.