Skip to content

Commit

Permalink
Better Cache Strategy Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Mar 17, 2024
1 parent 5ed3b83 commit 1ef2470
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@
'workbox' => [
'page_caches' => [
[
'regex' => '.*',
'strategy' => 'staleWhileRevalidate',
'match_callback' => 'regex:.*',
'strategy' => 'StaleWhileRevalidate',
'cache_name' => 'page-cache',
'broadcast' => true,
'urls' => ['privacy_policy', 'terms_of_service'],
'preload_urls' => ['privacy_policy', 'terms_of_service'],
],
],
'offline_fallback' => [
Expand Down

0 comments on commit 1ef2470

Please sign in to comment.