Note that there are some explanatory texts on larger screens.

plurals
  1. POApache -Caching: How to Configure Response headers in Apache 2+.
    primarykey
    data
    text
    <p>I am very new in Apache Configuration and caching.</p> <p>I want set some headers in Apache (eg max-age, min-fresh, last modified etc). </p> <p>Have checked Modules are there and there installed and loaded....</p> <p>Have edited httpd.conf and re-started the same after making some changes regarding caching headers.</p> <p>e.g.</p> <pre><code>&lt;FilesMatch "\.(ico|pdf|flv|jpe?g|png|gif|js|css|swf)$"&gt; ExpiresActive On ExpiresDefault "access plus 1 year" &lt;/FilesMatch&gt;` Header unset ETag FileETag None &lt;FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$"&gt; Header unset Last-Modified Header set Expires "Fri, 21 Dec 2012 00:00:00 GMT" Header set Cache-Control "public, no-transform" &lt;/FilesMatch&gt; </code></pre> <p>Even tried different other things and when I tried to check for response on client side (MSIE and Mozilla). None of these headers came in response.</p> <pre><code>LoadModule foo_module modules/mod_foo.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so LoadModule env_module modules/mod_env.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule expires_module modules/mod_expires.so LoadModule headers_module modules/mod_headers.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so # ...... LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule cgi_module modules/mod_cgi.so and these are located on specific directory .... (shows the desired output -- ls /etc/httpd/modules | egrep "headers|expire") </code></pre> <p>These are the only changes which I have done. Please let me know if I m missing something or doing something wrong,</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload