From f2f74ef417d05b1599bb81a4c99edb59313fe829 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Tue, 2 Jul 2024 16:45:53 -0700 Subject: [PATCH] docs: More robust solution to Safari dev cache bug --- docs/src/guide/troubleshooting.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/src/guide/troubleshooting.md b/docs/src/guide/troubleshooting.md index af2e3d74..b2d0e274 100644 --- a/docs/src/guide/troubleshooting.md +++ b/docs/src/guide/troubleshooting.md @@ -158,11 +158,18 @@ This is probably the case if you are seeing errors such as `# +<%= vite_stylesheet_tag("application", preload_links_header: !Rails.env.development?) %> +``` + +With preloading disabled, Safari will properly refresh changed files and HMR will work. ## Fixed Issues