-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I believe I am getting false positives for this policy:
https://github.com/drutiny/content/blob/master/Policy/acquia/cloud-edge-caching.policy.yml
This site returns HIT for header: cf-cache-status but the policy outputs "Failed"
$ drutiny policy:audit Acquia:CloudEdgeCaching @craind83.prod --uri=https://autoweek.com -vvv
[notice] Loading profile sources
[notice] cskb.acquia.com has 69 polices.
[notice] drutiny.github.io has 235 polices.
[notice] localfs has 0 polices.
[info] Loaded policy sources in 0.42s
[info] Cache hit for Acquia:CloudEdgeCaching from drutiny.github.io
PHP Warning: dirname() expects parameter 1 to be string, object given in /Users/mark.felton/TAM-Tools/drutiny-cs-adaptor/vendor/drutiny/drutiny/src/Report/Format.php on line 159
Warning: dirname() expects parameter 1 to be string, object given in /Users/mark.felton/TAM-Tools/drutiny-cs-adaptor/vendor/drutiny/drutiny/src/Report/Format.php on line 159
[debug] Cache hit for: drush sa @craind83.prod --format=json
[debug] Reporting period set 2019-06-04 22:00:00 America/New_York to 2019-06-05 22:00:00 America/New_York
[info] Cache hit for Acquia:CloudEdgeCaching from drutiny.github.io
[info] Assessing policy...
[debug] Reporting period set 2019-06-04 22:06:44 America/New_York to 2019-06-05 22:06:44 America/New_York
[debug] Reporting period set 2019-06-04 22:00:00 America/New_York to 2019-06-05 22:00:00 America/New_York
[info] Auditing Acquia:CloudEdgeCaching
[info] Evaluating expression: (Policy("HTTP:Cache-Control") == "success")
[info] Running policy HTTP:Cache-Control audit inside dependency expression.
[info] Cache hit for HTTP:Cache-Control from drutiny.github.io
[debug] Reporting period set 2019-06-04 22:06:44 America/New_York to 2019-06-05 22:06:44 America/New_York
[info] Auditing HTTP:Cache-Control
[info] Drutiny\Http\Audit\Http: GET https://autoweek.com
[debug] Tokens:
header: Cache-Control
regex: max-age=
_chart: { }
url: 'https://autoweek.com'
force_ssl: false
method: GET
options: { }
status_code: null
use_cache: true
[debug] Policy(HTTP:Cache-Control) returned "success".
[debug] Drutiny\Policy\Dependency: Expression PASSED: 1
[info] Drutiny\Http\Audit\Http: GET https://autoweek.com
[debug] Tokens:
header: cf-cache-status
header_value: HIT
_chart: { }
url: 'https://autoweek.com'
force_ssl: false
method: GET
options: { }
status_code: null
use_cache: true
# Policy Audit: Acquia:CloudEdgeCaching
22:06 - June 5th, 2019
https://autoweek.com
## Policy Outcome
### Cloud Edge Caching
❌ Failed [severity=medium]
When Cloudflare is successfully caching a page it will send out `CF-Cache-Status`
headers with caching information for the page requested. The value should be HIT
Acquia Cloud Edge did not hit cache.
#### Remediation
Please review your Cloud Edge settings to ensure page caching is enabled. Also
check Drupal cache settings to ensure the page requested is cacheable.
Running the same policy on http://autoweek.com works.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels