redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Disable cache with env variable in docker

Open bazarniy opened this issue 1 year ago • 3 comments

Describe the problem to be solved

  • I am developing spec
  • I have redoc docker monitoring directory
  • I have a lot of $refs reffering $refs etc.

So if I make change in the inner file and reload page in browser sometimes nothing happens. I've spent some hours to find the problem. It is browser cache. I think it caches js files.

It looks like this issue but not

Describe the solution you'd like It would be cool if you add env variable for disabling cache (adds no cache headers) to use while developing

Describe alternatives you've considered I've tried to use no cache checkbox in devtools. It not works fine for js files. Private window in browser works fine

bazarniy avatar Jul 12 '23 13:07 bazarniy

+1 for this

bambamboole avatar Jul 26 '23 10:07 bambamboole

@ZyzychO please take a look. Thank you!

nalesnichok avatar Aug 08 '23 13:08 nalesnichok

Hey @bazarniy! Thank you for reporting this! I was able to reproduce the aforementioned behavior on my side.

Stay tuned for updates.

ZyzychO avatar Aug 14 '23 17:08 ZyzychO