Start here: Open 000-START-HERE-STEP-BY-STEP.html first for exact deployment instructions.

CloudFront Media Behavior Automation Web PHP v163 documentation package

v161 keeps the Default behavior safety lock and adds polled RunLog progress updates so logs can appear while long CloudFront operations are running.

Built 2026-05-21T02:18:53Z.


v161 emergency safety lock and polled RunLog

Default behavior is locked. This build snapshots DefaultCacheBehavior before generating media behavior changes, restores it from the snapshot before upload, and refuses to update CloudFront if the Default behavior changes.

The app may update ordered CacheBehavior media rules only. It must not change Default response headers policy, CloudFront Function associations, or Lambda@Edge associations.

v161: Keeps the v159 Default behavior safety lock and adds a polled RunLog status endpoint for progress updates during long runs, even when the server buffers the main response.


v162 cache/invalidation update

This version creates a long-lived JSON cache policy named JsonLong1YearEventInvalidated. Use it for generated directory JSON only when the S3 directory-index updater Lambda is also deployed with CloudFront invalidation enabled.

The intended model is: cache for 365 days when unchanged, then invalidate immediately when S3 create, overwrite, or delete events rebuild the directory index.


v163 documentation safety update

Adds START HERE deployment instructions and a plain checklist. Core PHP tool behavior remains v162.