TlsrComSwireWriter icon indicating copy to clipboard operation
TlsrComSwireWriter copied to clipboard

Website caches firmware image

Open papadeltasierra opened this issue 2 years ago • 1 comments

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.

papadeltasierra avatar Jan 03 '23 15:01 papadeltasierra

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

SLboat avatar Jul 05 '24 13:07 SLboat