Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The config file:

<IfModule mod_cache.c>
  <IfModule mod_disk_cache.c>
    CacheRoot /var/cache/mod_cache
    CacheEnable disk /
    CacheDirLevels 5
    CacheDirLength 2
    CacheMinFileSize 0
    CacheIgnoreHeaders Set-Cookie

A URL for example: https://example.com/content.png

In the cache file under /var/cache/mod_cache I see domain.com:443/content.png instead of domain.com/content.png When I reload the URL, it reload the file version of the image. If I reload, the URL with the 443 https://example.com.com:443/content.png the caching is working fine.

Any idea why mod_cache adds the port 443 to the path of the cached file? How do I fix this mismatch?

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.