Skip to content

Commit

Permalink
Add todo-note that we'll surely not forget
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Jan 23, 2023
1 parent e136cd3 commit bcbabcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/resolvers/default/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func Initialize(ctx context.Context, cfg config.APIConfig, pool db.Pool, router
imageCached := stampede.Handler(256, 2*time.Second)
generatedValuesCached := stampede.Handler(256, 2*time.Second)

// TODO: Make the max age headers be applied based on the resolved link's configured cache timer
router.With(cache.MaxAgeHeaders(time.Minute*10)).Get("/link_resolver/{url}", defaultLinkResolver.HandleRequest)
router.With(cache.MaxAgeHeaders(time.Minute*10), imageCached).Get("/thumbnail/{url}", defaultLinkResolver.HandleThumbnailRequest)
router.With(generatedValuesCached).Get("/generated/{url}", defaultLinkResolver.HandleGeneratedValueRequest)
Expand Down

0 comments on commit bcbabcb

Please sign in to comment.