Mailing List Archive

AH00717: Premature end of cache headers
Hi,

I have an apache 2.4.46 system on fedora33 with php-7.4.16 and seeing
the following errors pretty regularly on my joomla system:

[Fri Mar 26 19:20:38.768857 2021] [cache_disk:error] [pid 2202202:tid
2202272] (70014)End of file found: [client 172.69.19.132:44102] AH00717:
Premature end of cache headers., referer: https://linuxsecurity.com/

This appears to be the same as this open bug from early 2020, first
reported in 2016:
https://bz.apache.org/bugzilla/show_bug.cgi?id=59744

This site is using cloudflare caching, but I don't think it's related.

Here are my current cache settings:

CacheQuickHandler off
CacheLock on
CacheLockPath /tmp/mod_cache-lock
CacheLockMaxAge 5
CacheIgnoreHeaders Set-Cookie
CacheRoot "/var/cache/httpd"
CacheDetailHeader on

CacheEnable disk "/"
CacheHeader on
CacheDefaultExpire 800
CacheMaxExpire 64000
CacheIgnoreNoLastMod On
ExpiresActive on
ExpiresDefault A300
CacheDirLevels 2
CacheDirLength 3

On my fedora33 system, htcacheclean runs periodically, but the
/var/cache/httpd directory still contains entries from more than six
months ago. I periodically try and delete them, but what is a reasonable
amount of time these directories should remain in place? How do you
determine what a reasonable cache size should be?

Does anyone have any idea what causes this? Is it in fact a bug, even
after first being reported more than five years ago?

Thanks,
Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org