greasyfork-org/greasyfork

Script `History` tab rendering history of wrong script

Closed this issue · 3 comments

The past few days I've noticed that when visiting a history tab for a script, it may use the history (and name) of some random script instead of the one I'm looking at. At times it feels like it happens more than half of the time.

Sometimes reloading will eventually load the right history.

Which script it does show history for seems to be random, though at the moment, the two tabs I'm looking at show the same history for some unrelated script. One I'm looking at is a userscript, the other a library.

https://greasyfork.org/en/scripts/478188-nh-xunit/versions
xunit

https://greasyfork.org/en/scripts/472097-linkedin-tool/versions
lit

After taking a couple of minutes to file this report, a reload shows a different script:

lit2

Feels like bad values are cached somewhere?

I managed to get the history for my own userscript to load. Then when I loaded my library, it showed me the history of my userscript.

Constantly reloading that page eventually got me the right content there. Though it bounced between a few different scripts in the mean time.

I wonder: if two browsers are loading different histories at the same time, do they end up seeing the same page?

Feels like bad values are cached somewhere

Yup, the cache key was not correctly reading the script ID so whatever request happened first after expiry had its result stored for all scripts.

Your browser differences were likely due to you being logged in on one and not another.