update: cache-busted version reload with one-time auto-connect; announce list counts; add apache no-cache html headers

This commit is contained in:
Jage9
2026-02-22 18:57:40 -05:00
parent deb235fb9c
commit eb18155132
4 changed files with 51 additions and 5 deletions

View File

@@ -103,6 +103,7 @@ cd /home/bestmidi/chgrid
Notes:
- Replace `yourdomain.com` with your real domain.
- Script copies `deploy/apache/chgrid-vhost-snippet.conf`, runs `rebuildhttpdconf`, then restarts Apache via WHM restart command.
- Snippet now includes no-cache headers for `/chgrid/` and `/chgrid/index.html` so client updates are not stuck on stale HTML.
## 7) Optional HTTPS relay for HTTP radio streams

View File

@@ -1,7 +1,15 @@
# Add inside your SSL VirtualHost include for bestmidi.com.
# Keep your existing main DocumentRoot unchanged when hosting Chat Grid under /chgrid.
# Required modules: proxy, proxy_http, proxy_wstunnel
# Optional but recommended modules for client update freshness: headers, setenvif
# Proxy websocket signaling endpoint to local Python service.
ProxyPass /ws ws://127.0.0.1:8765
ProxyPassReverse /ws ws://127.0.0.1:8765
# Ensure HTML entrypoint is never cached so version updates are picked up quickly.
<LocationMatch "^/chgrid/?$|^/chgrid/index\\.html$">
Header set Cache-Control "no-store, no-cache, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "0"
</LocationMatch>