Skip to content
Discussion options

You must be logged in to vote

Answering my own question in case someone is ever looking for this.

In the /config/statamic/static_caching.php file there is a 'replacers' section where you can add your own class.

    /*
    |--------------------------------------------------------------------------
    | Replacers
    |--------------------------------------------------------------------------
    |
    | Here you may define replacers that dynamically replace content within
    | the response. Each replacer must implement the Replacer interface.
    |
    */

    'replacers' => [
        \Statamic\StaticCaching\Replacers\CsrfTokenReplacer::class,
        //\Statamic\StaticCaching\Replacers\NoCacheReplacer::class,
        \

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by earthwytch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant