vicariousdrama / cornychat

🌽 Corny Chat is an open source audio space built on Jam that integrates Nostr and Lightning
https://cornychat.com
GNU Affero General Public License v3.0
21 stars 6 forks source link

Force refresh #23

Closed vicariousdrama closed 5 months ago

vicariousdrama commented 6 months ago

iPhone users regularly having issues with older versions of code and cant reload without clearing their entire safari cache.

Check this out https://stackoverflow.com/questions/73530776/reactjs-client-needs-to-force-refresh-after-deploy

Consider adding to ui/server/templates/index.ejs

<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
vicariousdrama commented 6 months ago

see also https://www.codemzy.com/blog/clients-reload-single-page-application-update

vicariousdrama commented 5 months ago

deployed