cache_update.sh 292 B

12345
  1. #! /bin/bash
  2. # Use this script every time you modify any file to force browsers to reload it (empty HTML5 cache).
  3. command -v ed &> /dev/null || { echo "Error: 'ed' not installed. Aborting." > /dev/stderr; exit 1; }
  4. printf ",s/#V.*/#V $(date '+%Y%m%d%H%M%S')/\nw\nq\n" | ed -s cache.manifest