Closed howardjones closed 5 years ago
Checked several recent commits - this is not fixed yet. Tested on this commit bb4b06c9a6e1f117095f9fc044d043628ae11b34
Interesting. It works for me on a fresh Vagrant box... did you do a hard-refresh in the browser after updating? This new javascript-based stuff makes it easier to accidentally not see updates.
No, I don't make hard reset. I try do it tomorrov
@howardjones you may want to utilise a feature we did of adding a hash to query parameters part of the URI so that browsers realise there is a change made. If the hash is based on file contents, it would ensure it only changes when the file is changed.
I will look into something like that. This is actually what the ETag feature in Apache does for you (and also the default build system for npm - I'm actually taking out a hash from the filename to avoid having to change the code all the time :-) )
We just do it on the URI : https://cacti/include/layout.js?hash=
I have updated composer and bower and clear browser cache. Now it's working. We can close this issue.
Cool. I'll also look into the various options for hashes to try and remove that requirement.
(it's only the browser you need to do anything with usually - on Chrome, it's right click on the Reload button)
I think on Chrome, you can hit Ctrl-Refresh, though sometimes I found pressing F12 to invoke the developer tools first works better since Chrome seems to realise you may need fresher copies when you hit refresh.
I'm use ctrl+F5
, it's working for many browser
The output/ directory should not be web-accessible. There should be an API command like
viewimage
for fetching the HTML too. That way, it goes through the Cacti authentication system.(This would go in WeatherMapCactiUserPlugin.php)