Decide whether to cache based on file extension
change url fragment too #md5=... rather than #...