Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Align HttpSys caching with ResponseCaching checks

Open Beginner friendly
#69,671 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
backend

Research direction

Read the referenced checks in ResponseCachingPolicyProvider.cs and the caching logic in RequestContext.FeatureCollection.cs. Compare how they handle no-store and no-cache, then check the relevant HttpSys tests; done means HttpSys avoids caching when a non-caching directive is present, even if public is also set.

Written by the indexing model from the issue text.

Description

area-networking

ResponseCaching checks values like no-store and no-cache when deciding whether a response should be cached.
https://github.com/dotnet/aspnetcore/blob/7eef82517d72081afab5a6d107f52f035340c6a1/src/Middleware/ResponseCaching/src/ResponseCachingPolicyProvider.cs#L68-L89

HttpSys currently relies on public, we should update the checks here to avoid any mistakes that could come from user error adding both public and a non-caching primitive.
https://github.com/dotnet/aspnetcore/blob/7eef82517d72081afab5a6d107f52f035340c6a1/src/Servers/HttpSys/src/RequestProcessing/RequestContext.FeatureCollection.cs#L727

Dominant language
C#
Stars
38.5k
Forks
12.5k
Avg merge
2d 4h
Merged PRs (30d)
217

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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.

More from dotnet/aspnetcore

All issues in dotnet/aspnetcore

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.