letsencrypt / letsencrypt/boulder

Permit caching of /directory

Open
#4,814 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
5.8k
Forks
649
Avg merge
3d 23h
Merged PRs (30d)
24

Description

Currently, requesting the /directory gives this response header:

cache-control: public, max-age=0, no-cache

A strictly implemented client is forced not to cache the result, but fetch a new copy of the directory every time it is needed. However, the contents of the directory are likely to change very rarely.

Boulder should instead set a reasonable expires header, to reduce unnecessary requests.

This would also help to reduce log volume, see issue #3050. 😉

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 locating the /directory endpoint and inspect how its response headers are set. Determine a reasonable expiration policy, then verify that the response permits caching and that the behavior addresses the unnecessary requests described in this issue; issue #3050 provides related context.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.