Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website caches firmware image #7

Open
papadeltasierra opened this issue Jan 3, 2023 · 1 comment
Open

Website caches firmware image #7

papadeltasierra opened this issue Jan 3, 2023 · 1 comment

Comments

@papadeltasierra
Copy link

It appears that your USBCOMFlashTx.html webpage caches the firmware image which is very confusing when you make changes to the firmware but the new firmware does not get uploaded. I discovered this because I did this cycle:

  1. Build some firmware, say "firmware.bin"
  2. Upload the firmware to a TLSR8258
  3. See the result
  4. Modify the firmware source and build a new image "firmware.bin" (in same directory, with same filename)
  5. Upload the firmware again
  6. The change from step 4 is NOT present :-(.

The TLSR8258 still has the OLD firmware from step 2 despite the tool having uploaded and reported "OK".

I can even delete the file "firmware.bin" from my hard drive and I can still use the webpage to upload firmware to the TLSR8258 and since the file really does not exist, the image must have been cached somewhere.

A workaround is to refresh the browser which seems to clear out all the caching and if I select "firmware.bin" again, this time the correct, new image is uploaded.

@SLboat
Copy link

SLboat commented Jul 5, 2024

esphome web tool looks to have the same situation, which appears to be a caching logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants