~/talk

Cache busting using Laravel Mix and CDN

Talkat Laracon EU 2019 · 2019-08-28..08-30· [web-performance, frontend-architecture]
links:none on file
slides:none on file

Shows how to combine Laravel Mix with an S3/CloudFront CDN to actually cache‑bust: sets Cache‑Control to one year, uploads build output to s3, and discovers query‑string versioning breaks because CloudFront can ignore ?id= and S3 replication can serve old objects. Demonstrates replacing query strings with file‑name hashing via the laravel-mix-versionhash plugin (or full webpack/js‑CLI) so new builds create new filenames and avoid stale cached assets — solution works in production.

AI-written summary · about

  1. 0:00Start
  2. 4:25Install webpack-s3-plugin
  3. 7:55Cache Busting
  4. 9:06Versioned file name
  5. 9:26How do we reference assets URL on the CDN?
  6. 15:49In some cases, S3 might return previous version of the object
  7. 18:18Filename Based Versioning
  8. 19:56Install laravel-mix-versionhash
  9. 22:23JS Framework CLIS VA
  10. 23:29WRAP UP
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.