6 months ago

Nginx Fastcgi cache

Posted 6 months ago by mesasix


Anyone used fastcgi cache for laravel?

I cant seem to get around the configuration to cache only non authenticated requests since laravel adds the same cookie name for both auth/non auth users.

Any help is greatly appreciated.

Edit: I can add a custom cookie with arbitrary value that determines authenticated user using a response/after middle-ware and read it from nginx but it seems like a far fetched solution. Im wondering if there is a more elegant solution.

Please sign in or create an account to participate in this conversation.