Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I plan to add the caching module in Apache2.

If I add the following lines in the Configuration it works fine.

<IfModule mod_disk_cache.c>

SetEnvIf Request_URI !\.(|pdf|jpg|jpeg|png|gif|)$ no-cache

CacheEnable disk /

CacheRoot /var/cache/apache2/mod_disk_cache

CacheIgnoreCacheControl On

CacheMaxFileSize 2500000

CacheIgnoreHeaders Set-Cookie


But the problem is that Apache2 cache the Files for every new session of my JBoss Application. I searched for this problem and the solution is to add the following line in the Apache config.

CacheIgnoreURLSessionIdentifiers jsessionid

And this is my problem, if I add this line I got the following message by Apache restart.

**Invalid command 'CacheIgnoreURLSessionIdentifiers', perhaps misspelled or defined by a module not included in the server configuration**

The cache and the disk_cache module is active. Do I need any other module to use CacheIgnoreURLSessionIdentifiers or is it only available in a newer Apache version?

Best regards Benny


Apache2 Version: 2.2.12-1.40.1


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.