---
title: "Task: Cache versioned assets for good"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:task-1791151926@main"
source: "Changelog/1.0.0/Task-1791151926-CacheVersionedAssetsForGood.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Task: Cache versioned assets for good {#task-1791151926}

## Description {#description}

Every page load asked the web server again for each script and style sheet, although their URLs change with their
content: package assets carry their hash as `?bust=`, the bundled vendor files in their name. The `.htaccess`
the Composer installer writes and the nginx configuration of ddev now send them with
`Cache-Control: public, max-age=31536000, immutable`.

## Impact {#impact}

An installation whose `.htaccess` was written before keeps it; delete it and run `composer install` to get
the new one. Apache needs `mod_headers` for the header.
