gin-contrib / gin-contrib/cache

Not caching 204

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

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.

Screenshot 2019-12-02 at 2 35 46 PM

Contributor guide

No contributing guide indexed for this repository

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.