For a web application which can run offline, I have a cache manifest file that contains a comment to indicate when it was last updated:
# version: 20131220-1006
I'd like to be able to read this version comment line so that I display the version number. Is there a way to get this directly through JavaScript?
(A workaround would be to create a server-side script that will read the version number from the cache manifest file stored on the server, and return that information as a separate operation, but that seems like sledgehammer+nut).