Bug 58964 - Problems when caching more than one SSI level
Summary: Problems when caching more than one SSI level
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cache (show other bugs)
Version: 2.4.18
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-03 13:30 UTC by Ivan Blanco
Modified: 2016-02-03 16:01 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Blanco 2016-02-03 13:30:26 UTC
If html has more thant one SSI level apache only cache parent html, for example:

test1.html with that content:
   <!--#include virtual="test2.html"-->
test2.html with that content:
   <!--#include virtual="test3.html"-->
test3.html with that content:
   <!--#include virtual="test4.html"--> 
test4.html with that content:
   test4

In that case if we request test1.html we will get a MISS fromt that page and the second request we will get a HIT, but if we request directly the second time test2.html,test3.html,test4.html we will get a MISS, and I think its better to get a HIT, for example test3.html can have different Expiration time than the other ones, and thats useful to have more dynamic content with less apache load.

I have tested with that configuration mod_cache like this:

CacheSocache memcache:localhost:11211
CacheSocacheMaxSize 10240
CacheQuickHandler Off
AddOutputFilterByType INCLUDES;CACHE;BUFFER text/html

CacheIgnoreCacheControl On
CacheIgnoreQueryString Off
CacheStoreExpired On
CacheIgnoreNoLastMod On

And in VHOST:
<Location />
   BufferSize 1024000
   CacheEnable socache
   SSILastModified On
   SSIETag On
</Location>