OSC / ood-fileexplorer

[MOVED] The Open OnDemand File Explorer
https://osc.github.io/Open-OnDemand/
MIT License
4 stars 1 forks source link

Unexpectedly View Action Result Is Cached #194

Closed MorganRodgers closed 5 years ago

MorganRodgers commented 5 years ago

A user was recently surprised by the behavior of the view button. They noticed that when they view a file, changed it, and then clicked the View button again, they were shown with the unchanged file.

The files explorer does not need to be a live update, but it should not display cached results.

MorganRodgers commented 5 years ago

The problem appears to be that the CloudCmd client always caches the request. The idea presumably being that if the user expects that the underlying file system has changed then they will use the refresh button.

https://github.com/OSC/ood-fileexplorer/blob/138f74190eec7222f0278e92bc2ebd1a1b250500/lib/cloudcmd/lib/client/rest.js#L184-L210

A solution is to set the jQuery caching flag to false.