Greetings!

So I managed to upgrade our engine to start using emscripten_fetch API, 
which is very nice! Good job! Being able to get the content of a file from 
either local storage (IndexedDB) or from the remote using a single 
emscripten_fetch call is wonderful.

I'm currently using the EMSCRIPTEN_FETCH_LOAD_TO_MEMORY | 
EMSCRIPTEN_FETCH_PERSIST_FILE | EMSCRIPTEN_FETCH_APPEND attributes, which 
is nice to make sure to use local storage content if it already exist. 
However this pose the problem that if the content changed on the remote, 
the local storage will be used instead of the newer remote content. I was 
hoping there would be a way to compare remote file timestamps with local 
storage file timestamp, and replace local storage if remote file timestamp 
is newer, but I couldn't find it.

Should I be implementing my own versioning system somehow? A timestamp 
based system would have been nice because it would allow to replace single 
files instead of all files. Should I look into implementing a timestamp 
replace option in Emscripten fetch API, or should this entire versioning 
system stay outside of the API?

/discuss

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to