quiet / quiet-js

Transmit data with sound using Web Audio -- Javascript binding for libquiet
BSD 3-Clause "New" or "Revised" License
2.2k stars 151 forks source link

Add support for file suffixes #12

Open dbrgn opened 7 years ago

dbrgn commented 7 years ago

To simplify cache busting, it would be great if there were an option to add e.g. a profilesSuffix, analogous to the profilesPrefix option (and the same for memoryInitializerPrefix and libfecPrefix).

In my project I set HTTP caching to 1 year for all static resources and use a ?v=123 parameter that is incremented on each release.

brian-armstrong commented 7 years ago

@dbrgn

This is a good idea, and I believe it'd be easy enough to do with the profiles. Unfortunately I'm not sure it'll work for the emscripten bits since that tends to be more inflexible.

I've got a big overhaul planned on how all the fetching stuff works since it's presently pretty brittle. I'll see what I can do with suffixes as part of that