forked from darkweak/souin
README.md

Beego filter: Souin #

This is a distributed HTTP cache module for Beego based on Souin cache.

Features #

Example #

There is the example about the Souin initialization.

import (
	"net/http"

	httpcache "github.com/darkweak/souin/plugins/beego"
)

func main(){

    // ...
	web.InsertFilterChain("/*", httpcache.NewHTTPCacheFilter())
    // ...

}

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.
See the full detailled configuration names here.

Other resources #

You can find an example for a docker-compose stack inside the examples folder.
See the Souin configuration for the full configuration, and its associated development beego filter