Commit 120d599
committed
Add caching directive for static content
Images and other static assets that are currently not cache-busted
will be cached for a week.
CSS and JS files (which we currently cache-bust) can be cached for
an arbitrarily long time, so we set it to a year.
This change fixes F grades on performance test sites in the
"Cache static content" category. Now we get an A!
NOTE: No particularly strong reason why `mod_headers` was used to set
the "max-age" header instead of `mod_expires`.1 parent ac023c7 commit 120d599
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments