If you want to cache the Data in the user cache to avoid high traffic you could enable the cache, I choose for Images 60 Days and for Javascript and CSS 2 Days.
Edit: “/etc/apache2/apache2.conf”:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#cach control 60day <FilesMatch ".(jpg|jpeg|gif)$"> Header set Cache-Control "max-age=5184000, public" </FilesMatch> #cach control 2day <FilesMatch ".(js|css)$"> Header set Cache-Control "max-age=172800, public" </FilesMatch> |
Maybe this helps you: apache2 Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration.