Skip to content

Commit

Permalink
Allow multiple page cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Mar 9, 2024
1 parent baeacfb commit d7478fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 57 deletions.
54 changes: 0 additions & 54 deletions assets/src/installation-status_controller.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/Command/ListCacheStrategiesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$strategy->urlPattern,
$strategy->enabled ? 'Yes' : 'No',
$strategy->requireWorkbox ? 'Yes' : 'No',
'', //Yaml::dump($strategy->options),
Yaml::dump($strategy->options),
]);
}
}
Expand Down
10 changes: 8 additions & 2 deletions tests/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,14 @@
'scope' => '/',
'use_cache' => true,
'workbox' => [
'page_cache' => [
'urls' => ['privacy_policy', 'terms_of_service'],
'page_caches' => [
[
'regex' => '.*',
'strategy' => 'staleWhileRevalidate',
'cache_name' => 'page-cache',
'broadcast' => true,
'urls' => ['privacy_policy', 'terms_of_service'],
],
],
'offline_fallback' => [
'page' => '/offline.html',
Expand Down

0 comments on commit d7478fe

Please sign in to comment.