Skip to content

Commit

Permalink
Fix default Cache-Control header
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed Aug 29, 2024
1 parent f5c69a7 commit fffd14f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CloudflareMate Changelog

## 1.0.2 - 2024-08-29
### Fixed
- Fix default Cache-Control header

## 1.0.1 - 2024-04-26
### Fixed
- Fixed an issue where only the first regex rule in `ignoredUrls` would be processed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vaersaagod/cloudflaremate",
"description": "Are your clouds flaring up again, mate?",
"type": "craft-plugin",
"version": "1.0.1",
"version": "1.0.2",
"require": {
"php": ">=8.1",
"craftcms/cms": "^4.7.0"
Expand Down
2 changes: 1 addition & 1 deletion src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Settings extends Model
{

/** @var string The Cache-Control header set for the request if/when CFM figures it can be cached */
public string $cacheControlHeader = 'public, max-age=31536000'; // TODO validation. This is required
public string $cacheControlHeader = 'public, s-maxage=31536000, max-age=0'; // TODO validation. This is required

/** @var string A Cloudflare API token (not key!) */
public string $apiToken;
Expand Down

0 comments on commit fffd14f

Please sign in to comment.