--- description: globs: *.js,*.css alwaysApply: false --- # Asset Hashing and CSP Update Rule This rule ensures that all `.js` and `.css` assets are properly hashed and their integrity hashes are updated in `index.html` and added to the Content Security Policy (CSP) in the `Caddyfile` during every build and push process. ## Process to Follow 1. **Hash Calculation**: Before building the Docker image, calculate the SHA256 hash for each `.js` and `.css` file in the `docker/resume/` directory using a command like `shasum -a 256 filename | awk '{print $1}' | xxd -r -p | base64`. 2. **Update index.html**: Update the `integrity` attribute in the `