.. include:: /Includes.rst.txt .. _task-1791151926: ===================================== Task: Cache versioned assets for good ===================================== 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 ====== 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. .. index:: Frontend, package:adsum-composer-installers