gin-contrib / gin-contrib/cache
Not caching 204
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 456
- Forks
- 100
- Avg merge
- 2h 16m
- Merged PRs (30d)
- 2
Description
I have made a small POC. As per code and comments in middleware, it will cache any response with response code < 300, but its caching only 200.
Contributor guide
No contributing guide indexed for this repository
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
Start by reading the cache middleware and its response-status handling, especially the comments describing which statuses should be cached. Reproduce the reported 204 response case and trace whether it reaches the cache path. Done means the documented status range and actual caching behavior agree, with coverage for the 204 case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100