Disable cache with env variable in docker
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 25.9k
- Forks
- 2.4k
- Avg merge
- 13h 10m
- Merged PRs (30d)
- 4
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named in the issue. Start by locating the Docker configuration and the entry point that serves the JavaScript assets, then check how environment variables are passed through the container. Done means a development setting can disable caching and browser responses include no-cache headers; verify this with the Docker setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, typescript
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100