Skip to content

docs: Note the Serverpod Cloud cache default on the Flutter web page - #932

Open
developerjamiu wants to merge 1 commit into
mainfrom
docs/flutter-web-cloud-default
Open

developerjamiu wants to merge 1 commit into
mainfrom
docs/flutter-web-cloud-default

Conversation

@developerjamiu

Copy link
Copy Markdown
Contributor

Serverpod Cloud sets SERVERPOD_WEB_SERVER_FLUTTER_CACHE_CONTROL to public, max-age=0, s-maxage=86400 on every project, so on Cloud a FlutterRoute doesn't send the framework default described on this page. This adds a note that says so and links to the CDN page.

Merge after #930. Until then, the linked CDN page still says caching is off by default.

Changes

  • Cloud default note: A note after the environment variable paragraph says what Cloud sets, what it means for browsers and the CDN, and where to change or remove it.
  • Colons: Two sentences that joined clauses with a colon are rewritten (the intro and the WASM paragraph).
  • Versions: The same change is in docs/ and the 4.0.0 and 4.1.0 copies. The 3.x copies are unchanged, because FlutterRoute reads the variable from 4.0.0 on.

Verified against

  • Serverpod Cloud main: the default variables set on every project.
  • Serverpod 4.0.0 and 4.1.2, flutter_route.dart: the route falls back to the variable when no cacheControlFactory is passed. Serverpod 3.4.0 doesn't read it.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant