mwarning / openwrt-firmware-selector

OpenWrt firmware selector. With custom image builder support.
https://mwarning.github.io/openwrt-firmware-selector/www/
Creative Commons Zero v1.0 Universal
38 stars 23 forks source link

Prevent browser from caching image build time #73

Closed Akira25 closed 3 years ago

Akira25 commented 3 years ago

Problem Description

In current Version 3.4.1 one can observe this behavior: If the image-json-data got updated (i.e. via cronjob), the new image data doesn't show up in the browser. Apparently, its cached. I've notice that, when I was loading a brand new snapshot-build, but the date was still pointing out that this image would have been built a month ago. Disabling the cache in development tools fixed that immediately.

Expected Behaviour

It would be really great to have that caching somehow deactivated by default. Most users won't select that option in their browsers and would get displayed deprecated data then.

mwarning commented 3 years ago

I think that would help: https://gitlab.com/openwrt/web/firmware-selector-openwrt-org/-/merge_requests/51

mwarning commented 3 years ago

A fix was merged. Let me know if it works for you. Thanks!

Akira25 commented 3 years ago

Works fine. Thank you for that quick fix. :)