spring-projects / spring-projects/spring-boot

More control over cache headers on simple actuator web endpoints

Open
#32,823 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

I exposed some resources (non functional) as endpoints in the actuator, the clients use the cache headers to know how much time they are going to keep that resource cached and avoid repeated calls.

I would like to use a @WebEndpoint instead of @RestEndpointController with just a configuration or an annotation.

Could time-to-live affect response headers? could you offer a new configuration just for that?

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

Start by reading the actuator entry points named in the issue, @WebEndpoint and @RestEndpointController, and trace how time-to-live is currently handled. Compare the proposed configuration or annotation approaches, then verify that the selected behavior produces the intended cache headers for non-functional web endpoint resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.