Skip to content

Customize cache key generation #30

Closed
@sagikazarmark

Description

@sagikazarmark
Q A
Bug? no
New Feature? yes
Version 1.2

Actual Behavior

The cache key is currently generated based on the following details:

  • hash algo
  • request method
  • URI
  • request body

Expected Behavior

One should be able to customize this behaviour.

Example: Separate cache entry per authorization header.

Possible Solutions

Introduce a CacheKeyGenerator interface which would receive the request as a parameter.
It should be an optional parameter of the plugin, falling back to the current implementation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions