Skip to content

[Cache] ELI5 on root-level files#30600

Open
Oxyjun wants to merge 2 commits intoproductionfrom
jun/cache/root-eli5
Open

[Cache] ELI5 on root-level files#30600
Oxyjun wants to merge 2 commits intoproductionfrom
jun/cache/root-eli5

Conversation

@Oxyjun
Copy link
Copy Markdown
Contributor

@Oxyjun Oxyjun commented May 5, 2026

Summary

ELI5 pass on the root-level MDX files in /cache/. Three of the five files (changelog.mdx, glossary.mdx, plans.mdx) are auto-generated component pages with no prose — skipped. index.mdx had clear prose — no changes needed. Only get-started.mdx had clarity issues.

Key changes to get-started.mdx:

  • Broke a dense 52-word opening sentence into three shorter sentences with concrete examples of static content types (images, CSS, JavaScript)
  • Replaced scare-quoted "cacheable"/"uncacheable" pattern with plain language
  • Fixed misleading "Cloudflare only caches resources within the Cloudflare data center that serve the request" — dropped "only" since this is inaccurate when Tiered Cache is enabled (which the same page promotes)
  • Updated "unproxied (grey-clouded)" to "DNS-only (unproxied)" to match current terminology in /dns/proxy-status/
  • Removed dated third-party examples ("such as Facebook or Flickr")
  • Shortened the "Cloudflare features that can alter your HTML and cacheable objects" heading to "Features that alter cached content"
  • Replaced corporate first-person voice ("we may need to alter your HTML," "our customers") with direct second-person phrasing
  • Added "security protections" to the feature description — three of the five listed features (Hotlink Protection, Email Obfuscation, Bot Management) are security features, not optimizations

All changes verified through adversarial fact-check review.

Documentation checklist

@github-actions github-actions Bot added product:cache Issues or PRs related to Cache size/s labels May 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/cache/ @angelampcosta, @dcpena, @cloudflare/pcx-technical-writing, @cloudflare/product-owners

Comment thread src/content/docs/cache/get-started.mdx Outdated
@Oxyjun Oxyjun self-assigned this May 5, 2026
@Oxyjun Oxyjun marked this pull request as ready for review May 5, 2026 13:24
@Oxyjun Oxyjun requested review from a team and dcpena as code owners May 5, 2026 13:25
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

@codyanthony850 codyanthony850 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style review — 3 issues found (2 medium, 1 low)


These code alterations only occur on the cacheable objects found at Cloudflare's edge and do not affect the original source. The changes will also be removed if the specific feature is disabled and the cache is purged.
Some Cloudflare features modify your HTML or cached objects at the edge to enable optimizations or security protections.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] "The changes are removed if the feature is disabled and the cache is purged." — passive voice in three places ("are removed", "is disabled", "is purged"). Style guide prefers active voice.

Suggested change
These alterations only affect cached copies at Cloudflare's edge and do not change your original source files. Cloudflare removes the changes when you disable the feature and purge the cache.

import { GlossaryTooltip } from "~/components"

Cloudflare makes customer websites faster by storing a copy of the website's content on the servers of our globally distributed data centers. Content can be either static or dynamic: static content is “[cacheable](/cache/concepts/default-cache-behavior/#default-cached-file-extensions)” or eligible for caching, and dynamic content is “uncacheable” or ineligible for caching. The cached copies of content are stored physically closer to users, optimized to be fast, and do not require recomputing.
Cloudflare speeds up websites by storing copies of content on its globally distributed data centers.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] "Cloudflare speeds up websites by storing copies of content on its globally distributed data centers." — third-person voice; second person is preferred for addressing the reader.

Suggested change
Cloudflare speeds up websites by storing copies of content on its globally distributed data centers.
Cloudflare speeds up your website by caching content across globally distributed data centers.

Cloudflare makes customer websites faster by storing a copy of the website's content on the servers of our globally distributed data centers. Content can be either static or dynamic: static content is “[cacheable](/cache/concepts/default-cache-behavior/#default-cached-file-extensions)” or eligible for caching, and dynamic content is “uncacheable” or ineligible for caching. The cached copies of content are stored physically closer to users, optimized to be fast, and do not require recomputing.
Cloudflare speeds up websites by storing copies of content on its globally distributed data centers.

Content can be static or dynamic. Static content — such as images, CSS, and JavaScript files — is [cacheable](/cache/concepts/default-cache-behavior/#default-cached-file-extensions), meaning Cloudflare can store and serve it from its edge. Dynamic content, such as HTML pages, is not cached by default.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] The static/dynamic contrast framing implies dynamic content cannot be cached at all, but the "Make more resources cacheable" section below links to Cache Rules, which lets users cache dynamic content. Consider making the "by default" qualifier more explicit.

Suggested change
Content can be static or dynamic. Static content — such as images, CSS, and JavaScript files — is [cacheable](/cache/concepts/default-cache-behavior/#default-cached-file-extensions), meaning Cloudflare can store and serve it from its edge. Dynamic content, such as HTML pages, is not cached by default.
Content can be static or dynamic. Static content — such as images, CSS, and JavaScript files — is [cacheable](/cache/concepts/default-cache-behavior/#default-cached-file-extensions) by default. Dynamic content, such as HTML pages, is not cached by default, but you can use [Cache Rules](/cache/how-to/cache-rules/) to cache it.

Copy link
Copy Markdown
Contributor

@codyanthony850 codyanthony850 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Please apply the suggestion on line 20 (dynamic content clarification) before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:cache Issues or PRs related to Cache size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants