Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Deleting a Gatsby site: how do I get the browser to clear the cache? #15623
Once a site has been implemented in Gatsby it is difficult to migrate to another framework as Gatsby remains in the browser cache for an excessively long time, causing the old site to continue to render. This can be worked around by manually clearing the cache but it is impractical to expect users to do this.
Steps to reproduce
Create a Gatsby site. View in browser. Move to something else (e.g. static HTML). Gatsby site will still render in the browser until the cache is cleared. This happens months after migrating off Gatsby.
New site should render
Old Gatsby site renders
I don't have Gatsby installed any longer, so cannot answer this question unfortunately. However I used latest Gatsby as of several months ago.
On Thu, Jul 11, 2019 at 10:19 AM Patrick Faramaz ***@***.***> wrote: You have the same problem in multiple browser ? Maybe it's the service worker cache ? clear cache storage. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#15623?email_source=notifications&email_token=AAAH5XEYFVU5QEP7TMFBGLLP633LHA5CNFSM4IAVFWB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZWCUTY#issuecomment-510405199>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAAH5XGWTEYYMP67ZI6XD7TP633LHANCNFSM4IAVFWBQ> .
it's good solution. But is not gatsby problem, it's service worker problem. Also, you can clear the cache with this solution : https://stackoverflow.com/questions/45467842/how-to-clear-cache-of-service-worker
Copied from the linked thread:
As stated, this is slightly tangential to Gatsby, and it seems like we’ve provided enough information to make an informed decision.
If this is not the case, or if we can help further--please don’t hesitate to reach out or comment on this issue, and we’d love to take another look.
Thanks for using Gatsby