Энштеин, скопируй и вставь...
Энштеин, скопируй и вставь...
Lestat, интересный код. Поэксперементирую с ним на досуге.
ValekS (13.12.2012 / 20:24)А вот смотри,к примеру этот код сохранит в кеше файл в формате jpg,это аватар пользователя,а если пользователь сменить авку,в кеше обновится?
Lestat, интересный код. Поэксперементирую с ним на досуге.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@efir.mobi and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Lestat (13.12.2012 / 20:12)Не пашет,выбивает ту ошибку выше
Используя кэширование .htaccess можно существенно увеличить скорость сайта.[php]# 1 ГОД
<FilesMatch "\.(ico|pdf|flv)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 НЕДЕЛЯ
Энштеин (13.12.2012 / 21:26)а у меня пашет) только с оперы все ок а вот в хроме заново все загружает с мозилы не проверял...но килобайты не уменьшивается только скорость прибавляется..
Не пашет,выбивает ту ошибку выше
Это работае везде
# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
# END Expire headers
# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<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>
# END Cache-Control Headers venom (14.12.2012 / 03:55)прям в хитачес писать ?
Это работае везде
[php]# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
Expire
Fublin, Да
venom, а де мануал можно найти по етому ?