flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.6k stars 407 forks source link

Changed default cache behavior #598

Closed n0nag0n closed 5 days ago

n0nag0n commented 1 week ago

If you didn't specify a default cache behavior, then the browser could boss around your routes and create a lot of confusion. This should fix that so that you have to explicitly cache your routes for them to be cached. Usually you only cache your GET and HEAD requests.