Skip to content

Commit 75bb4db

Browse files
committed
improvement(landing): describe the Markdown variant's cache policy accurately
1 parent 5d502d9 commit 75bb4db

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/app/index.md/route.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ export const revalidate = 3600
2424

2525
/**
2626
* The homepage as Markdown. `next.config.ts` rewrites `/` here when `Accept` asks for
27-
* `text/markdown`, so this body is also served at `/`. It is uncached downstream like the HTML
28-
* there, since a cache that ignores `Vary` would otherwise hand it to browsers.
27+
* `text/markdown`, so this body is also served at `/`. It is `no-store` so a cache that ignores
28+
* `Vary` can never hand it to a browser; at worst such a cache serves the HTML to a Markdown
29+
* client.
2930
*/
3031
export async function GET() {
3132
const response = markdownResponse(

0 commit comments

Comments
 (0)