Refonte moderne, full stack et sécurisée du portfolio - #1
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2ad40be3b3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Désactiver listing de répertoire | ||
| Options -Indexes | ||
| <FilesMatch "\.(?:css|js|svg|webp|png|jpe?g)$"> | ||
| Header set Cache-Control "public, max-age=31536000, immutable" |
There was a problem hiding this comment.
Use revved filenames for immutable assets
In production Apache, this sends a one-year immutable cache header for CSS and JS, but the site still links to stable filenames like /assets/css/style.css and /assets/js/main.js. After the next deployment, returning browsers can keep the old stylesheet/script for up to a year and render the new PHP markup with stale assets unless users hard-refresh; either fingerprint these filenames or use a shorter/revalidating cache policy for unversioned assets.
Useful? React with 👍 / 👎.
Résumé
.gitdeploy.phpVérifications
Portfolio quality / validate— réussinpm testet syntaxe PHP — réussisnpm audit— 0 vulnérabilité