unpoly icon indicating copy to clipboard operation
unpoly copied to clipboard

Headers X-Up-Events replay issues with caching

Open boxxxie opened this issue 3 years ago • 1 comments

Bug description

X-Up-Events headers cause duplicate events to fire when unpoly uses the cache for up-follow or it's other directives. I'm not sure that this is intended behaviour or not, maybe i'm not using events in the way envisioned by rails or unpoly.

what i've done to provide intuitive behaviour for events is have my server include a X-Up-Clear-Cache header whenever it sends events as well.

assuming the event playback from cache is intended behaviour, could you give an example of what UI this makes sense for.

boxxxie avatar Feb 01 '22 22:02 boxxxie

I have never used X-Up-Events for a GET request, which is the only kind of request that is being cached.

triskweline avatar Feb 02 '22 08:02 triskweline

I'm going with intended behavior here.

triskweline avatar Nov 10 '23 20:11 triskweline