Invalidate `http_response` for new scripts or change in placement

Created on 7 March 2025, about 1 month ago

Problem/Motivation

When using `page_cache` or a reverse proxy like Varnish, the `http_response` cache tag needs to be invalidated when:

- A new script is created
- Script placement is changed

Otherwise cached pages will be missing the snippet.

Steps to reproduce

I haven't manually tested yet, but I assume:

- Visit `/` anonymous
- Add a script
- Revisit `/` and no script

Proposed resolution

Whenever a script is saved, invalidate `http_response` cache tag

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024