Skip to content

Commit

Permalink
Mark as critical
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Aug 29, 2024
1 parent e214272 commit 4d81357
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

- Fixed a bug in which installing the plugin via the CLI could cause an error ([#705](https://github.com/putyourlightson/craft-blitz/issues/705)).

## 5.7.0 - 2024-08-26
## 5.7.0 - 2024-08-26 [CRITICAL]

> [!IMPORTANT]
> To ensure the changes are applied, the cache should be refreshed after this update completes.
> [!WARNING]
> This update includes a fix for an issue in which Blitz could send incorrect Cache-Control headers. Please [read this article](https://putyourlightson.com/articles/critical-update-for-a-blitz-blunder) to find out whether the issue affects your site, and what you should do. To ensure the changes in this update are applied, the cache should be refreshed after this update completes.
### Added

Expand Down
5 changes: 5 additions & 0 deletions tests/pest/Feature/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

use putyourlightson\blitz\Blitz;

test('The default cache control header doesn’t allow caching', function() {
expect(Blitz::$plugin->settings->defaultCacheControlHeader)
->toContain('no-store');
});

test('The cache control header doesn’t allow browser caching', function() {
expect(Blitz::$plugin->settings->cacheControlHeader)
->toContain('max-age=0');
Expand Down

0 comments on commit 4d81357

Please sign in to comment.