Skip to content

Still need cache-busting on CSS file? #27657

Answered by SteveSandersonMS
szalapski asked this question in Q&A
Discussion options

You must be logged in to vote

Whether or not the browser uses cached copies is controlled by the HTTP headers sent by your server when it returned the .css file previously. As long as it has a valid etag then the browser should check for updates via a request with an If-Modified-Since header. This isn't something that Blazor WebAssembly controls, since Blazor WebAssembly is purely client-side and hence doesn't control the headers sent by your server.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@szalapski
Comment options

@szalapski
Comment options

@SteveSandersonMS
Comment options

@szalapski
Comment options

@szalapski
Comment options

Answer selected by SteveSandersonMS
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants