Znalazłem taki mini poradnik:
http://www.askapache.com/htaccess/apache-s...he-control.html
Dodałem wg instrukcji do httpd.conf następujący kod:
# 480 weeks <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Cache-Control "max-age=290304000, public" </FilesMatch> # 2 DAYS <FilesMatch "\.(xml|txt)$"> Header set Cache-Control "max-age=172800, public, must-revalidate" </FilesMatch> # 2 HOURS <FilesMatch "\.(html|htm)$"> Header set Cache-Control "max-age=7200, must-revalidate" </FilesMatch>
jednak, apache się teraz nie restartuje i dostaję błąd:
"Syntax error on line 4 of /etc/apache2/httpd.conf:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed."
Jak to w takim razie odpalić
