Pages Internal API Caching

What

For GET /api/internal/pages:. This is the API endpoint that gets called by GitLab pages when a request comes in and we haven't cached what needs to be served for this.

Given that the satisfiedThreshold for writing headers for a response is 0.5s, ideally, this would be even faster than the threshold set for web-pages. We think 0.5s for serving a static page is an acceptable target.

Since this information generally does not change a lot, we could add some more caching here to help the metrics.

Relevant Files

  • lib/api/internal/pages.rb
Edited by David O'Regan