Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

   


   


   

















      :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[apache-talk] =?Windows-1251?B?zeUg6uX46PDz/vLx/yDq4PDy6O3q6C4=?=


  • To: apache-talk@xxxxxxxxxxxxx
  • Subject: [apache-talk] Не кешируются картинки.
  • From: Yaroslav Lebedinskiy <yarik@xxxxx>
  • Date: Mon, 26 Apr 2004 01:36:49 +0400
  • Organization: ViP

Здравствуйте, apache-talk.

Есть проблема - не кешируются картинки.
Похоже, появилась проблема после установки mod_gzip.
Если запрашивать HTML, в заголовке выдаёт
Vary: Accept-Encoding,
а для картинок Vary: *

Конфигурация mod_gzip вот:

#######################################
### Apache configuration directives ###
###   for mod_gzip 1.3.26.1a        ###
#######################################

LoadModule gzip_module libexec/mod_gzip-1.3.26.1a-FreeBSD-4.6-i386.so

  mod_gzip_on                   Yes
  mod_gzip_can_negotiate        Yes
  mod_gzip_static_suffix        .gz
  AddEncoding              gzip .gz
  mod_gzip_update_static        No
  mod_gzip_command_version      '/mod_gzip_status'
 mod_gzip_temp_dir             /tmp
  mod_gzip_keep_workfiles       No
  mod_gzip_minimum_file_size    500
  mod_gzip_maximum_file_size    1000000
  mod_gzip_maximum_inmem_size   60000

  mod_gzip_min_http             1000
# Possible values: 'GET', 'POST' or a list of both values.
  mod_gzip_handle_methods        GET POST
  mod_gzip_item_exclude         reqheader  "User-agent: Mozilla/4.0[678]"
# JA:   HTML-Dokumente
  mod_gzip_item_include         file       \.html$
  mod_gzip_item_include         file       \.shtml$
  mod_gzip_item_include         file       \.htm$
# NO:   include files / JavaScript & CSS (due to Netscape4 bugs)
  mod_gzip_item_exclude         file       \.js$
  mod_gzip_item_exclude         file       \.css$
# YES:  CGI scripts
  mod_gzip_item_include         file       \.pl$
  mod_gzip_item_include         file       \.cgi$
  mod_gzip_item_include         handler    ^cgi-script$
  mod_gzip_item_include         file       \.php$
  mod_gzip_item_include         file       \.php3$
# YES:  normal HTML files, normal text files, Apache directory listings
  mod_gzip_item_include         mime       ^text/html
  mod_gzip_item_include         mime       ^text/plain
  mod_gzip_item_include         mime       ^httpd/unix-directory
#
# NO:   images (GIF etc., will rarely ever save anything)
  mod_gzip_item_exclude         mime       ^image/
  mod_gzip_dechunk              Yes
  mod_gzip_add_header_count     Yes



-- 
С уважением,
 Yaroslav                          mailto:yarik@xxxxx


 




Copyright © Lexa Software, 1996-2009.