diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/experimental/cache_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/experimental/cache_util.c b/modules/experimental/cache_util.c index 19262afaa4..5bb43922d9 100644 --- a/modules/experimental/cache_util.c +++ b/modules/experimental/cache_util.c @@ -104,6 +104,9 @@ CACHE_DECLARE(const char *)ap_cache_get_cachetype(request_rec *r, const char *type = NULL; int i; + /* we can't cache if there's no URL */ + if (!url) return NULL; + /* loop through all the cacheenable entries */ for (i = 0; i < conf->cacheenable->nelts; i++) { struct cache_enable *ent = |