Skip to content

feat: Add HTTP Cache Middleware #142

@darkweak

Description

@darkweak

Hello there, first of all, thank you for this Laravel-like Golang web app framework.

I already wrote an HTTP cache system (called Souin) used by the caddy cache-handler module and roadrunner, compatible with Træfik, Tyk and many other reverse-proxies/API Gateway. It supports the RFC-7234, can partially cache graphQL request, invalidate using xkeys/ykeys like Varnish. It also implements the Fastly purge using the Surrogate-key header. It can store and invalidate a CDN (cloudflare, fastly, Akamai), and it supports the Cache-Status RFC directive. It implements two in-memory/fs storages (badger & nutsdb) and two distributed storages (olric & etcd) that are fully configurable. The keys can be tweaked (e.g. serve the same cached css for multiple domains) and we can change the Cache-Status name through the configuration. And in the next release, all responses will be streamed and support the ESI tags.

What do you think about implementing it in the cache repository and make something like the cache-handler, the Souin repo could be the stable development repository and the confetti-framework/confetti could contains the stable production code.

Let me know your preference about that. ✌️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions