Skipper
Configuration
First you need to configure your skipper instance with the cache dependency in the eskip configuration file.
The configuration is a stringified JSON, it’s quite painful to write it but that’s the Skipper configuration format 🤷♂️.
Look at the configuration section to discover all configurable keys here.
Usage
You can now use the NewSouinFilter in your Skipper codebase project to enable the HTTP cache. Using RoutesFile property will parse and use the Souin configuration defined in it to configure the HTTP cache behavior.
With that your application will be able to cache the responses if possible and returns at least the Cache-Status HTTP header with the different directives mentionned in the RFC specification.
Other resources
You can find an example for a docker-compose stack inside the examples folder on the Github repository.