server doesn't take into account header change
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
## To reproduce
- Open a custom site in a server A (for example dev.massa-deweb.xyz)
- Add a header to this site via the cli metadata command like explained [here](https://docs.massa.net/docs/deweb/cli/metadatas#http-headers). Wait some time for the operation to be finalized
- If you reload the site, the header is not returned by the server A
- If you open the site in another server B (like the localhost for example) the header is returned as expected
- Now remove the header and wait some time for the operation to be finalized.
- The server B still return the header.
## How to
The error seems to be caused by a cache problem. If we manually remove the cache, the server take into account the header change.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the header add/remove flow using the CLI metadata command and compare responses from server A and server B after finalization. Start by tracing the server cache handling for site headers; done means both servers reflect added headers and stop returning removed headers without manually clearing the cache.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100