gh-polls icon indicating copy to clipboard operation
gh-polls copied to clipboard

The screen shown when clicking on voted option is cached by chrome and shown again on repeated click

Open noway opened this issue 7 years ago • 2 comments

Although I already voted, it still shows me "Thanks for voting!" screen.

Inspection of network requests shows that the page is being displayed straight from cache.

screen shot 2017-07-09 at 1 55 45 am

Possibly happens only in chrome, because chrome these days seems to aggresively cache all http2 cache.

(happens when clicking on the option I've chosen, as because for other options browser didn't have a chance of caching the response)

noway avatar Jul 08 '17 14:07 noway

weird! It doesn't affect the vote anyway so not a huge deal

tj avatar Jul 08 '17 18:07 tj

Still, setting Cache-Control: Private or something similar on first response would be nice.

noway avatar Jul 09 '17 07:07 noway