Difference between applicationcache disable local cache and localstorage?

Hi I would like to know the difference between Difference between applicationcache disable local cache and localstorage ?
My application uses and iframe to connect to php code on web server but sometimes javascript and css files are not loaded properly. whats the best way to reload fresh files after any changes ?

or should i try portable version do not create any file in storage folder ?

Thanks,

“Portable version do not create file in storage folder” does not work because i am creating a print option and it throws an error when using do not store file in storage.