dunglas / frankenphp

🧟 The modern PHP app server
https://frankenphp.dev
MIT License
6.7k stars 220 forks source link

Standalone binaries with Caddy cache-handler #956

Closed laurent-bientz closed 1 month ago

laurent-bientz commented 1 month ago

Describe you feature request

Hello,

Is your feature request related to a problem? Please describe.

We're using frankenphp standalone binaries with api platform and we want to test the new recommended http cache module instead of Varnish.

It seems that cache module is not packaged in the Caddy web server.

Describe the solution you'd like

Describe alternatives you've considered

Create static binary ourselves (or using the shell script) but we don't see any Docker ARG (env variables) to enable Caddy's http cache module.

dunglas commented 1 month ago

We follow Caddy's (@mholt, @francislavoie) and Souin's (@darkweak) strategy here. Currently, Caddy doesn't include Souin by default because the lib has many external dependencies.

For this reason, we'll not include this module by default either, until it is bundled in upstream Caddy.

darkweak commented 1 month ago

@laurent-bientz To explain a bit more, I don't want to include the cache-handler in Caddy directly (even after the storages refactoring that reduces the external dependencies) at the moment (and it will never be IMHO) because the cache-handler API (the exported code) we prefer to keep it as external to be able to release independently from the caddy server.