spring-projects / spring-projects/spring-boot
More control over cache headers on simple actuator web endpoints
Nobody has claimed this yet.
- 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
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 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