Redocly / Redocly/redoc

Disable cache with env variable in docker

Open
#2,353 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.