Questions tagged [mod-cache]

48 questions
2
votes
0 answers

How to tell apache to look for last modified date before serving an old modified HTML file?

On certain requests my Django application updates static HTML files. However apache is serving them old copy from its cache... How can I configure Apache to make sure serve latest file changes.. This changes are not so frequent but as changes are…
shahjapan
  • 141
  • 1
  • 13
2
votes
1 answer

How to turn on mod_cache with mod_proxy or mod_jk

I'm trying to setup apache+mod_jk/mod_proxy with mod_cache. But it looks like all proxied requests are ignored by mod_cache. May be it is related to module handling order or something else? Apache 2.2.22 I've tried use both mod_jk and mod_proxy -…
Sirex
  • 31
  • 3
2
votes
2 answers

How to optimize Lighttpd to host really small, static image files that do not change over time?

This Lighttpd server will need to very quickly serve different image files (say about 500 requests per second). Each image file is about 50-70kb and there's only going to be about 1000 or so of them. What would be the best way to setup an efficient…
Henrique
  • 153
  • 1
  • 5
2
votes
1 answer

apache mod_cache in v2.2 - enable cache based on url

We are using apache2.2 as a front-end server with application servers as reverse proxies behind apache. We are using mod_cache for some images and enabled it like this: CacheEnable disk / CacheRoot…
Janning
  • 1,421
  • 2
  • 21
  • 38
2
votes
1 answer

Apache mod_cache and mod_deflate?

We have a Apache 2.2 with mod_cache and mod_deflate among other modules. The problem is that if we append Vary header as in Apache documentation... # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary ...…
Petteri H
  • 227
  • 5
  • 12
2
votes
1 answer

Monitoring apache's caching

I'm running mod_mem_cache with mod_cache, but I don't seem to have any way of telling whether images are served from the cache or not, so I can't tell how well it's working. Is there some way of seeing via mod_status, adding cache status headers to…
Synchro
  • 3,148
  • 6
  • 27
  • 38
2
votes
1 answer

How to automatically purge cache with nginx using the http-cache-purge module (ngx_http_cache_purge_module.so)

I am running an Ubuntu 20.04 LEMP server with wordpress installed on it. I am using the nginx.org repository for nginx, but I compiled the cache-purge module (ngx_http_cache_purge_module.so) from source with my current nginx.org installation.…
DanRan
  • 73
  • 1
  • 3
  • 22
1
vote
1 answer

http response shows Expires in 1981 when using mod_cache

I'm setting up Apache caching on CentOS using mod_cache and mod_cache_disk with the configuration at the bottom of this post but the page is not cached. I included CacheDetailHeader on to get some debug info. When I hit the page, the HTTP response…
Daniel
  • 131
  • 6
1
vote
1 answer

Apache mod_cache cache misses

Somehow I can't get Apache's mod-cache to work as I want. I want it to cache a proxy call to my tomcat server which is a jsp file. The jsp file displays the current time so I can notice if I get a cached response or not.. This is my config: …
user2908112
  • 167
  • 1
  • 13
1
vote
3 answers

mod_cache serving the wrong content

I'm trying to use mod_disk_cache to speed up a web site that is running on WordPress. Whenever I enable it with CacheEnable disk / and the rest being the stock Ubuntu configuration I start to get the wrong results. When I see the main page it's…
Pablo Fernandez
  • 7,438
  • 25
  • 71
  • 83
1
vote
0 answers

How to use mod_cache with mod_proxy in Apache 2.4

The problem is getting proxied content to be cached by Apache 2.4. This problem was solved for Apache 2.2 (i.e. use mod_mem_cache). But in Apache 2.4 mod_mem_cache was removed. My upstream content source is http://10.1.1.123:8081/data/ and it is…
John Elliot V
  • 333
  • 2
  • 10
1
vote
0 answers

Apache httpd: mod_cache CacheStaleOnError vs. ErrorDocument

We have a Apache httpd with mod_cache/mod_disk_cache enabled. By default the directive CacheStaleOnError is activated. The documentatn states: When the CacheStaleOnError directive is switched on, and when stale data is available in the cache, the…
ahaertig
  • 65
  • 1
  • 7
1
vote
3 answers

Forcing Apache 2.4 to cache files with query string using mod_cache without expires

I need to get mod_cache_disk to cache a site containing query strings. The issue is that it's a vendor product on IIS that we're trying to cache through mod_proxy and it does not contain expires headers. I realize this issue violates several RFCs…
Lucas Holt
  • 113
  • 2
  • 9
1
vote
0 answers

apache reverse proxy - make static content cachable

I have an apache web server (reverse proxy with mod_proxy) in a front of a tomcat java application. to improve performance, i would like to make static content (css, javascript and images) cachable using mod_cache and mod_disk_cache. my question is…
Moam
  • 23
  • 4
1
vote
1 answer

Apache mod cache mem/disk saves the cache for 10 seconds and than re-cache

I have this set up in my 000-default: ServerName live.website.com DocumentRoot /var/www/live.website.com SetOutputFilter INFLATE;proxy-html;DEFLATE CacheEnable mem http://live.website.com/ …
yos mishan
  • 11
  • 3