Skip to content

fix: expose boot data and stop caching the frontend page - #1485

Merged
av-dev2 merged 1 commit into
version-15from
backport-1484-to-version-15
Aug 14, 2026
Merged

fix: expose boot data and stop caching the frontend page#1485
av-dev2 merged 1 commit into
version-15from
backport-1484-to-version-15

Conversation

@github-actions

Copy link
Copy Markdown

Backport of #1484 to version-15.


get_context returned the boot values flat, so the template's {% for key in boot %} loop had nothing to iterate and window.csrf_token was never set, breaking every write from the SPA.

cache = 1 is not a property Frappe reads, and www pages are cached by default. cache_html keys on path and language with no per-user key, so the rendered page was cached with one user's CSRF token and served to everyone. Set no_cache = 1 instead.

Also drop the db.commit() from a GET render.

get_context returned the boot values flat, so the template's
{% for key in boot %} loop had nothing to iterate and window.csrf_token
was never set, breaking every write from the SPA.

cache = 1 is not a property Frappe reads, and www pages are cached by
default. cache_html keys on path and language with no per-user key, so
the rendered page was cached with one user's CSRF token and served to
everyone. Set no_cache = 1 instead.

Also drop the db.commit() from a GET render.

(cherry picked from commit 934a3d5)
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