Skip to content

docs: describe available caching strategies#2489

Draft
Maciek Kucmus (mkucmus) wants to merge 2 commits into
mainfrom
docs/caching-strategies
Draft

docs: describe available caching strategies#2489
Maciek Kucmus (mkucmus) wants to merge 2 commits into
mainfrom
docs/caching-strategies

Conversation

@mkucmus

Copy link
Copy Markdown
Contributor

closes: #1631

What

New docs page best-practices/caching.md describing the caching strategies available in Shopware Frontends.

Covers six layers:

  • Request (cacheableReads) - opt-in POST->GET Store API reads with compressed _criteria, incl. the GET-over-POST architectural rationale, covered vs POST-only composables, and encodeForQuery encoding.
  • Render (routeRules) - ISR/SWR/prerender/headers with the real template examples.
  • Edge/CDN and Shopware backend HTTP cache - canonical Cache-Control, context scoping (sw-context-hash/Vary), reverse proxy.
  • Client state - shared composables, context token.
  • Assets/images - the shopware @nuxt/image provider + presets.

Copilot AI left a comment

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.

Pull request overview

Adds a new “Caching” best-practices page documenting the caching layers available in Shopware Frontends, and wires it into the docs navigation so it’s discoverable.

Changes:

  • Added best-practices/caching.md covering request (cacheableReads), render (routeRules), edge/CDN, backend HTTP cache, client state, and assets/images caching.
  • Linked the new page from Best Practices landing page (PageRef) and from the VitePress sidebar.
  • Extended AGENTS.md with a concise caching reference for contributors making code changes.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
apps/docs/src/best-practices/index.md Adds a Best Practices card linking to the new caching page.
apps/docs/src/best-practices/caching.md New documentation page describing caching strategies across multiple layers.
apps/docs/.vitepress/sidebar.ts Adds “Caching” entry under BEST PRACTICES in the sidebar.
AGENTS.md Adds a “Caching” section summarizing request/render/client-state caching guidance for contributors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/docs/src/best-practices/caching.md Outdated
Comment thread apps/docs/src/best-practices/caching.md Outdated
Comment thread apps/docs/src/best-practices/caching.md Outdated
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
frontends-starter-template-extended Ready Ready Preview, Comment Jun 15, 2026 12:11pm

Request Review

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Describe available caching strategies

2 participants