haku / mediatoad

Minimal media server with DLNA
Apache License 2.0
36 stars 13 forks source link

After updating server client browsers can be slow to pickup JS/CSS changes #28

Open haku opened 2 months ago

haku commented 2 months ago

probably need some mechanism to force new URL paths for such resources after service restart, maybe by putting the server start time in the path like /w/123456abc/main.css or something?

girlpunk commented 1 month ago

The "correct" way to to this is with HTTP headers, but adding a URL parameter with the last modified timestamp is a common workaround (and doesn't require any routing changes server-side)