Skip to content

v0.1.13

Choose a tag to compare

@sanayasfp sanayasfp released this 28 Jul 11:09
· 38 commits to main since this release

Fixed

  • Static assets (CSS, JS, fonts, images) on PHP projects using the v0.1.12
    FastCGI default were being routed through php-cgi instead of served
    directly. PHP passes non-PHP content through literally, so the bytes were
    correct, but php-cgi's default response has no Content-Type header, so
    everything came back as text/html — browsers silently accept that for
    scripts but strictly refuse it for stylesheets, so any project relying on
    Caddy to serve its own static files (plain PHP, WordPress, phpMyAdmin)
    rendered completely unstyled. The FastCGI route now only proxies *.php
    requests and serves everything else directly, matching Caddy's own
    documented expansion of its php_fastcgi Caddyfile directive. Verified
    live against the real packaged binary: a phpMyAdmin stylesheet now comes
    back as Content-Type: text/css (was text/html), served directly by
    Caddy.

Install

irm https://github.com/sanayasfp/stack/releases/latest/download/stackenv-installer.ps1 | iex

or

cargo install stackenv