This commit is contained in:
ct
2025-07-15 05:56:55 +08:00
parent 758db107d2
commit 3efc976dab
5 changed files with 155 additions and 6 deletions

View File

@@ -13,7 +13,7 @@
* You can provide your own class given that it implements the
* CacheProfile interface.
*/
'cache_profile' => Spatie\ResponseCache\CacheProfiles\CacheAllSuccessfulGetRequests::class,
'cache_profile' => App\Http\Middleware\InertiaResponseCacheProfile::class,
/*
* Optionally, you can specify a header that will force a cache bypass.
@@ -85,7 +85,7 @@
* This class is responsible for generating a hash for a request. This hash
* is used to look up a cached response.
*/
'hasher' => \Spatie\ResponseCache\Hasher\DefaultHasher::class,
'hasher' => App\Http\Middleware\InertiaResponseCacheHasher::class,
/*
* This class is responsible for serializing responses.