# Browser not refreshing

**URL:** <https://discourse.processing.org/t/browser-not-refreshing/32448>\
**Category:** Beginners\
**Created:** [September 27, 2021, 5:35pm UTC](https://discourse.processing.org/t/browser-not-refreshing/32448 "2021-09-27T17:35:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![philspitler](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@philspitler](https://discourse.processing.org/u/philspitler)\
**Post date:** [September 27, 2021, 5:35pm UTC](https://discourse.processing.org/t/browser-not-refreshing/32448/1 "2021-09-27T17:35:16Z")

</div>

I am having an issue with a P5 sketch that won’t update in Chrome.

If I do my tweaks, re-upload via FTP and refresh my browser, the updates don’t show in Chrome.

If I open a new incognito tab I do see the updates as expected.

It’s as if the browser is caching the sketch.js file even when I do a refresh.

If I refresh a little later I get the updated version.

Any idea?

Thanks

Phil

---

<div class="post-metadata">

**Author:** ![Chigoz](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Chigoz](https://discourse.processing.org/u/Chigoz)\
**Post date:** [September 27, 2021, 6:18pm UTC](https://discourse.processing.org/t/browser-not-refreshing/32448/2 "2021-09-27T18:18:04Z")

</div>

I use Cyber Duck to upload my sketches. For file transer I use SFTP and set localhost at 22. I guess the problem is because the server goes out unannounced, sometimes they work and sometimes they don’t, so keep uploading until it fixes itself. A little break or patience will suffice.

The problem I suppose is from the Web Hosting company. When that happens you can raise a problem.

---

<div class="post-metadata">

**Author:** ![philspitler](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@philspitler](https://discourse.processing.org/u/philspitler)\
**Post date:** [September 27, 2021, 6:51pm UTC](https://discourse.processing.org/t/browser-not-refreshing/32448/3 "2021-09-27T18:51:09Z")

</div>

The files gets uploaded ok with no errors as the sketch looks correct in incognito mode.

It’s certainly some kind of cache issue

Phil

---

<div class="post-metadata">

**Author:** ![KumuPaul](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kumupaul/32/13072_2.png) [@KumuPaul](https://discourse.processing.org/u/KumuPaul)\
**Post date:** [September 27, 2021, 7:50pm UTC](https://discourse.processing.org/t/browser-not-refreshing/32448/4 "2021-09-27T19:50:19Z")

</div>

If you have the ability to control the response headers specified for the files returned by your webhost add the following:

```nohighlight
Cache-Control: no-store

```

Alternately anywhere you are referencing files on your web host you can add a cache busting query parameter such as a version number or random string:

```nohighlight
https://yourhost/file.js?v=2

```

or

```nohighlight
https://yourhost/file.js?nonce=k39gh3r9gjbme

```
