dotnet / dotnet/aspnetcore

Consider updating the static file middleware to return cache-control: no-cache in Development

Open
#44,153 6 comments 1 reaction 0 assignees View on GitHub
area-middleware
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

The static files middleware currently doesn't return any cache control headers in development, which can lead to static files getting cached and content changes not being reflected in the app. It would be convenient if the static files middleware add the cache-control: no-cache header when running in development to prevent caching issues.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.