# Node Red UI template how to clear cache

**URL:** <https://discourse.nodered.org/t/node-red-ui-template-how-to-clear-cache/2444>\
**Category:** Dashboard\
**Created:** [21 August 2018 07:45 UTC](https://discourse.nodered.org/t/node-red-ui-template-how-to-clear-cache/2444 "2018-08-21T07:45:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![veera](https://avatars.discourse-cdn.com/v4/letter/v/ee59a6/32.png) [@veera](https://discourse.nodered.org/u/veera)\
**Post date:** [21 August 2018 07:45 UTC](https://discourse.nodered.org/t/node-red-ui-template-how-to-clear-cache/2444/1 "2018-08-21T07:45:52Z")

</div>

Hi i have a UI template node like this

```
[{"id":"a5c1aeec.acf41","type":"ui_template","z":"317f5671.321bea","group":"7390bf6e.e7d18","name":"alert","order":0,"width":"","height":"","format":"<meta http-equiv=\"cache-control\" content=\"no-cache\" />\n<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n<meta http-equiv=\"Expires\" content=\"-1\" />\n\n<div></div>\n<script>\n\n(function(scope) {\n scope.$watch('msg', function(msg) {\n alert(msg.payload);\n return msg;\n });\n \n})(scope);\n \n</script>\n\n","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":930,"y":540,"wires":[[]]},{"id":"ea160087.f05fd","type":"inject","z":"317f5671.321bea","name":"","topic":"","payload":"hello","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":704,"y":539,"wires":[["a5c1aeec.acf41"]]},{"id":"7390bf6e.e7d18","type":"ui_group","z":"","name":"info","tab":"3b15c8d0.06c048","order":5,"disp":false,"width":"9","collapse":false},{"id":"3b15c8d0.06c048","type":"ui_tab","z":"","name":"config","icon":"settings","order":4}]

```

When i do page reload this is executing with previous value though no "msg.payload" passed to it.  
can anyone help me how to clear the cache or on reload this should not show any alert.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 August 2018 07:46 UTC](https://discourse.nodered.org/t/node-red-ui-template-how-to-clear-cache/2444/2 "2018-08-22T07:46:15Z")

</div>

Did you try unticking the store to saved state option ?

---

<div class="post-metadata">

**Author:** ![veera](https://avatars.discourse-cdn.com/v4/letter/v/ee59a6/32.png) [@veera](https://discourse.nodered.org/u/veera)\
**Post date:** [22 August 2018 08:21 UTC](https://discourse.nodered.org/t/node-red-ui-template-how-to-clear-cache/2444/3 "2018-08-22T08:21:12Z")

</div>

ya i have tried but no luck

---

<div class="post-metadata">

**Author:** ![CreativeWarlock](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/creativewarlock/32/102051_2.png) [@CreativeWarlock](https://discourse.nodered.org/u/CreativeWarlock)\
**Post date:** [2 November 2020 22:22 UTC](https://discourse.nodered.org/t/node-red-ui-template-how-to-clear-cache/2444/4 "2020-11-02T22:22:44Z")

</div>

Can anyone enlighten me what this "store to saved state option" is?

Kind regards,  
Marcel

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 November 2020 22:51 UTC](https://discourse.nodered.org/t/node-red-ui-template-how-to-clear-cache/2444/5 "2020-11-02T22:51:38Z")

</div>

It means that anything sent from the the!plate is saved in the server, and if the page is refreshed it is resent to the dashboard, which not what this user wanted.
