Zdravim
potreboval by som poradit ako dostat do .htaccess Cache-Control: max-age a Expires, pripadne ine veci ktore su potrebne ku Cache.
poskusal som uz mnozstvo kombinacii, ale bud to nefunguje alebo mi da : Internal Server Error
neviete mi niekto poradit co robim zle, pripadne ci je potrebne este nieco spustit na Apache?
Potrebujem to na nastavenie Cashe.
Posielam ukazku mojho .htaccess, ale taktom mi to nefunguje. V privat message poslem pripadne aj konkretnu adresu, nechcem tu spamovat.
Dakujem za akukolvek pomoc.Diro
ErrorDocument 404 "http://www.xxx.de/404.html"
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* ? [F,L]
RewriteCond %{HTTP_HOST} ^78\.47\.xxx\.xxx
RewriteRule (.*)
http://www.xxx.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^xxx\.de
RewriteRule (.*)
http://www.xxx.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} xxx\.de/
RewriteRule (.*)
http://www.xxx.de/ [R=301,L]
RewriteCond %{HTTP_HOST} !^www.xxx.de$ [NC]
RewriteRule .?
http://www.xxx.de%{REQUEST_URI} [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.html($|\ |\?)
RewriteRule ^ /%1 [R=301,L]
<IfModule mod_deflate.c>
#The following line is enough for .js and .css
AddOutputFilter DEFLATE js css
AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html
#The following lines are to avoid bugs with some browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|xml|gz)$">
Header append Vary Accept-Encoding
</FilesMatch>
<FilesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</FilesMatch>
<FilesMatch "\.(css)$">
Header set Cache-Control "public"
</FilesMatch>
<FilesMatch "\.(js)$">
Header set Cache-Control "private"
</FilesMatch>
<FilesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</FilesMatch>
</IfModule>