The visible iPhone/iPad sort-header fix is in the matching s3-cloudfront-indexer v96 package. This PHP package is included as the companion CloudFront automation package for the same deployment set.
Purpose: This is a private web tool for updating CloudFront cache behavior rules and cache policies. This package includes the long-cache/event-invalidation model for generated directory JSON.
https://8k.art/beta/ with real AWS keys inside it. Run it only in a private/admin PHP location, or enter credentials manually only while using it.Use this tool when you need to update CloudFront behavior/cache-policy configuration through a browser instead of manually editing every rule in the AWS Console.
The important policy in this package is:
JsonLong1YearEventInvalidated
That policy means generated JSON such as .directory-index.json can cache for 365 days, because the S3 updater Lambda invalidates CloudFront whenever S3 changes.
| File in this ZIP | Where it goes | What it does |
|---|---|---|
cloudfront-media-behavior-automation.php | Your private PHP-capable web server/admin folder. | Main browser tool for inspecting and applying CloudFront behavior/cache-policy changes. |
cloudfront-tool-local-config.php | Same private folder as the PHP tool, or keep blank and enter credentials in the browser. | Optional local AWS credential config. Never publish this with real keys. |
README.html and these START HERE docs | Keep with the tool locally. You may upload docs publicly only after removing secrets. | Instructions and version notes. |
cloudfront-media-behavior-automation-web-php in a private/admin web directory.s3://www.8k.art/beta/ if it contains real AWS credentials.Open:
cloudfront-media-behavior-automation.php
Near the top, change:
const TOOL_PASSWORD_DEFAULT = 'change-this-password-now';
to a private password you will remember or store safely. Alternative: set an environment variable named:
CF_TOOL_PASSWORD
cloudfront-tool-local-config.php with placeholders.cloudfront-tool-local-config.php.awsAccessKeyId and awsSecretAccessKey.awsSessionToken only if using temporary/session credentials.cloudfront-media-behavior-automation.php.JsonLong1YearEventInvalidated for generated directory JSON.https://8k.art/beta/.s3://www.8k.art/beta/.The CloudFront distribution has the expected cache behavior/policy rules. Generated directory JSON uses JsonLong1YearEventInvalidated. The S3 updater Lambda invalidates CloudFront when S3 changes. https://8k.art/beta/ updates after uploads, overwrites, and deletes.