Skip to content

Commit

Permalink
docs: document bug in safari that caches css and prevents hmr (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersurge360 authored Sep 20, 2022
1 parent 788becb commit 522391c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/guide/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ This is probably the case if you are seeing errors such as `#<Errno::EMFILE: Too

Follow [this article][ulimit] for information on how to increase the limit of file descriptors in your OS.

### CSS does not seem to reflect changes in dev

Stylesheets are sent with [etags](https://en.wikipedia.org/wiki/HTTP_ETag) which allow a browser to cache the stylesheet until it changes. In development, a `Cache-Control: no-cache` header is also sent but unfortunately Safari does not respect the header and caches it anyways. The simplest way to work around the issue is to import the CSS directly into your javascript entry points. When the CSS is requested in this way it is requested with a query string that seems to break the cache.

## Fixed Issues

### Build not working in CI or Heroku
Expand Down

0 comments on commit 522391c

Please sign in to comment.