JustaPenguin / assetto-server-manager

A web interface to manage an Assetto Corsa Server.
https://github.com/JustaPenguin/assetto-server-manager/releases
MIT License
276 stars 70 forks source link

Suppress browser caching to avoid "Where's my time?!" questions. #1110

Open jaxankey opened 2 years ago

jaxankey commented 2 years ago

On the live timing / laps webpage, I would suggest including this in the header:

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">

as per the top solution here: https://stackoverflow.com/questions/49547/how-do-we-control-web-page-caching-across-all-browsers

I believe this will force browsers to reload the data and not use the cache, which will prevent confusion among participants. We have found that sometimes laps seem to "disappear" (but really they're just using an old version of the site), or we see different information on different devices, and switching to incognito seems to fix it.

Cheers! Jack