HTML - How can I check if a file (.js or .css) was loaded or picked up from the cache?
问题 First, I needed a way to force browser always load .css and .js files. I solved it by putting a sufix in the files: Before: <script type="text/javascript" src="file.js"></script> After: <script type="text/javascript" src="file.js?v=1"></script> That aparently worked. Now, I need to know if that really worked. Sure, I can edit the file and check the changes in my browser but I need a way more specific, something like an option in the browser that show "File loaded from the cache" / "New file