webpack / webpack-dev-middleware

A development middleware for webpack
MIT License
2.5k stars 377 forks source link

feat: allow to configure the `Cache-Control` header #1923

Closed alexander-akait closed 1 month ago

alexander-akait commented 1 month ago

This PR contains a:

Motivation / Use-Case

allow to configure the Cache-Control header

Breaking Changes

No

Additional Info

We can always generate immutable for hashed assets, webpack already set this value for asset, will be implemented later

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 60.09%. Comparing base (a516834) to head (c00eaa8). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1923 +/- ## ========================================== + Coverage 59.13% 60.09% +0.95% ========================================== Files 13 13 Lines 837 857 +20 Branches 233 244 +11 ========================================== + Hits 495 515 +20 Misses 284 284 Partials 58 58 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.