Skip to content

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

Merged
av-dev2 merged 1 commit into
Aakvatech-Limited:version-15-betafrom
av-dev2:feat_changes
Aug 14, 2026
Merged

fix: expose boot data and stop caching the frontend page#1484
av-dev2 merged 1 commit into
Aakvatech-Limited:version-15-betafrom
av-dev2:feat_changes

Conversation

@av-dev2

@av-dev2 av-dev2 commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

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.
@av-dev2 av-dev2 added the backport-to-version-15 Production branch label Aug 14, 2026
@av-dev2
av-dev2 merged commit 95deb2f into Aakvatech-Limited:version-15-beta Aug 14, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown

Successfully created backport PR for version-15:

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

Labels

backport-to-version-15 Production branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant