A good first CDN release for WordPress is small. Move the photographs, theme files and scripts that everyone receives. Before adding HTML, ask an editor to publish a post, preview a draft and sign out. Those three actions reveal much of the site’s real cache policy.
Move public files first
Use a distribution that can reach your origin over HTTPS. Request an existing upload and a versioned theme asset through the delivery hostname. Compare their bodies, content types and final URLs. Check whether your theme uses query parameters to identify asset versions before removing any parameters from the cache key.
Let the editor test the boundary
Keep login, administration, drafts, password-protected content and authenticated sessions outside shared caching. Plugins can add new private paths and cookies. Test with an editor and a separate anonymous browser. The anonymous visitor must never receive preview text, an admin toolbar or the editor’s personalized fragments.
Publish once and follow the links
A new article can appear on the homepage, a category archive and a feed as well as its own permalink. Change a distinctive sentence and inspect each surface through the public hostname. Give each one an acceptable refresh interval or include it in a targeted purge. A page-cache plugin at the origin can also retain the earlier HTML.
Sources & further reading
Reader questions
Should media uploads get a year of browser freshness?
Only when replacing a file changes its public URL. An editor who uploads a correction under the existing filename can leave readers with the previous image until its browser lifetime expires.
