boss-work-manager-configuration icon indicating copy to clipboard operation
boss-work-manager-configuration copied to clipboard

Same question repeated

Open Blaisorblade opened this issue 9 years ago • 1 comments

When I play (on both Chrome and Safari) I always get the same question repeated, till I force-reload: then the count is reset and the question is changed. Note in this screenshot how quiz always comes from the disk cache (the network download is earlier), as indicated in the size column:

image

The quiz starts working if I disable caching (see again the size column):

image

It seems that using GET (rather than POST) for a changing request allows for overly aggressive caching.

Blaisorblade avatar Feb 14 '17 14:02 Blaisorblade

Thanks for the bug report. I'll try switching it over to POST or adding cache control headers to GET to avoid caching.

On Tue, Feb 14, 2017 at 9:08 AM, Paolo G. Giarrusso < [email protected]> wrote:

When I play (on both Chrome and Safari) I always get the same question repeated, till I force-reload: then the count is reset and the question is changed. Note in this screenshot how quiz always comes from the disk cache (the first load is earlier):

[image: image] https://cloud.githubusercontent.com/assets/289960/22932011/1a246ffa-f2c7-11e6-983d-19ddaef280c0.png

The quiz starts working if I disable caching:

[image: image] https://cloud.githubusercontent.com/assets/289960/22932180/2c45ae56-f2c7-11e6-980c-bd42a82438cc.png

It seems that using GET (rather than POST) for a changing request allows for overly aggressive caching.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/achin/boss-work-manager-configuration/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAE8guD6mlDwCWu1kGiWtfxFtDsYp1eoks5rcbVIgaJpZM4MAg8V .

achin avatar Feb 14 '17 16:02 achin