Quickstart
Disclaimer
The standalone server is deprecated but still maintained for testing purpose you should not use it in production. Running Souin as caddy module is the recommended way.
Docker
The easiest way to try the HTTP cache is to run the docker container image. Simply write a docker-compose
yaml file with a souin and a træfik services.
You have write the Souin configuration YAML file.
Look at the configuration section to discover all configurable keys here.
From source
If you want to run the Souin standalone server from sources, you should clone the Souin repository and run the golang standalone server.
You can edit the configuration located at plugins/souin/configuration
to configure the HTTP cache server.
Look at the configuration section to discover all configurable keys here.
Then you can run the server.
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.
Simply run the following curl command to ensure everything is setup. (we ensure that domain.com
is a local domain).