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: Apache 2.2 to 2.4 caching changes |
|
Author |
|
songohan
Joined: 07 Oct 2013 Posts: 1
|
Posted: Mon 07 Oct '13 17:36 Post subject: Apache 2.2 to 2.4 caching changes |
|
|
Hello all
I updated our Apache 2.2. to Apache 2.4.6. (on Windows 2008). Now, I'm not sure if caching with mod_cache and mod_cache_disk is working properly.
Reproduce:
- Restart Apache and clear the cache
- Open a simple html site on the webserver
- If you take a look at the cache-directory, two files are generated (i.e. \1\2\a\b\abcd1234.data and \1\2\a\b\abcd1234.header)
- Wait a minute or two and refresh the site, doing a second request
You see that:
With Apache 2.2, the files in the cache-directory are not updated after the second request. They have the timestamp from the first request.
With Apache 2.4, the files in the cache-directory are updated on the second request. They have the timestamp from the second request.
So it seems to me, that Apache 2.4 is not really caching. On every page refresh, Apache is updating the files in the cache.
This is my config at the moment (it've tried a lot of different options):
Code: |
ExpiresActive On
ExpiresDefault A600
CacheRoot "e:/cache/cacheroot"
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
CacheDefaultExpire 3600
CacheMaxExpire 3600
CacheIgnoreURLSessionIdentifiers jsessionid
CacheDetailHeader On
CacheHeader On
CacheIgnoreCacheControl On
CacheIgnoreHeaders None
CacheIgnoreNoLastMod On
CacheIgnoreQueryString Off
CacheLastModifiedFactor 0.1
CacheStoreNoStore On
CacheStorePrivate On
CacheStoreExpired On
CacheLock on
CacheLockPath "e:/cache/cache-lock"
CacheLockMaxAge 5
|
So, is this behavior normal or is my Apache not really caching?
Thank you very much
Kind regards
songohan |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 11 Oct '13 16:48 Post subject: |
|
|
Can you please post the cache module that you load? |
|
Back to top |
|
|
|
|
|
|