Skip to content

fix: disable static file caching in development#3561

Merged
marvinhagemeister merged 1 commit into
freshframework:mainfrom
brettchalupa:fix-aggressive-caching
Oct 21, 2025
Merged

fix: disable static file caching in development#3561
marvinhagemeister merged 1 commit into
freshframework:mainfrom
brettchalupa:fix-aggressive-caching

Conversation

@brettchalupa
Copy link
Copy Markdown
Contributor

When running Fresh 2 in development, the ETag caching was leading to
incorrect assets being served. I'd often get stale assets from days ago
or separate apps. This problem was especially bad with multiple apps
that run on the same port. For example, I may work on App A on the
default port 5173. Then boot up App B. I'd get assets from App A when I
wouldn't want them, leading to a frustrating dev experience.

When running Fresh 2 in development, the ETag caching was leading to
incorrect assets being served. I'd often get stale assets from days ago
or separate apps. This problem was especially bad with multiple apps
that run on the same port. For example, I may work on App A on the
default port 5173. Then boot up App B. I'd get assets from App A when I
wouldn't want them, leading to a frustrating dev experience.
@brettchalupa brettchalupa marked this pull request as ready for review October 21, 2025 02:52
Copy link
Copy Markdown
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@marvinhagemeister marvinhagemeister merged commit 34aa46a into freshframework:main Oct 21, 2025
4 of 7 checks passed
@brettchalupa brettchalupa deleted the fix-aggressive-caching branch October 21, 2025 12:19
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.

2 participants