Skip to content
Senior IT Developer, Software Architect, AI masterDocumentation

← All guides

How to: caching (WP Super Cache, CDN)

The plugin sends Cache-Control: no-store, no-cache, must-revalidate, max-age=0, private, Pragma: no-cache and Expires: 0 for every endpoint in /wp-json/vstrb/v1/ and sets the DONOTCACHEPAGE flag while those requests are handled.

In Settings -> WP Super Cache -> Advanced -> Accepted Filenames & Rejected URIs add the rule ^/wp-json/vstrb/v1/ and delete the existing cache. Add the same path exclusion to any CDN, Nginx FastCGI cache or reverse proxy in front of WordPress; the server/CDN exclusion is required because a cached response can be served before WordPress or this plugin runs.

Frontend and admin JavaScript/CSS are versioned with the plugin version and the asset modification time, so browsers fetch changed assets automatically. If an old frontend still appears, clear page/minification caches (for example WP Optimize) and the CDN cache.