Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Lastmodified or ETAG headers on website hosted via apache2.4 |
|
Author |
|
ash2986
Joined: 18 Dec 2014 Posts: 1 Location: India
|
Posted: Thu 18 Dec '14 16:24 Post subject: Lastmodified or ETAG headers on website hosted via apache2.4 |
|
|
I have compiled apache with below configuration
./configure --prefix=/app/apache2_4 --with-apr=/app/apache2_4/apr --with-apr-util=/app/apache2_4/apr-util --with-pcre=/app/apache2_4/pcre/ --enable-ssl --with-ssl=/usr/bin/openssl --enable-modules=all --enable-mods-shared=all --enable-proxy --enable-mime-magic --enable-rewrite --enable-speling--enable-mpms-shared
But after compilation I have added expiry,deflate headers but I am not able to see either ETAG and LAst-modified header .Did someone face such kind of issue. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 18 Dec '14 17:03 Post subject: |
|
|
For getting an ETAG I use this config.
if there is in your config
change it to (if not present add)
Code: | FileETag MTime Size |
also add
Code: |
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType text/css A2592000
ExpiresByType image/png A2592000
ExpiresByType text/javascript A2592000
ExpiresByType image/icon A2592000
ExpiresByType application/javascript A604800
ExpiresByType image/x-icon A2592000
|
|
|
Back to top |
|
|
|
|
|
|