Questions tagged [mod-cache]

48 questions
7
votes
2 answers

Apache cache serving partial content 206 responses to requests for the full content

We're running Plone 3.3.6 behind Apache 2.2.19 with mod_cache. We've recently noticed that Apache is caching the 206 response to a range request and then serving that partial response when a request for the full resource is made. What seems to…
scarba05
  • 333
  • 6
  • 15
6
votes
1 answer

Apache/mod_cache: "Error 103 Software caused connection abort"

We keep getting the following error popping up in the apache error log: [error] (103)Software caused connection abort: cache: error returned while trying to return disk cached data This error occurs at irregular intervals, but on average about 1-2…
Rick Westera
  • 161
  • 1
  • 1
  • 4
5
votes
2 answers

mod_cache not working

I have a PHP site that has many dynamically generated pages. I'm trying to turn to mod_cache to help boost performance, because in most cases, content does not change in a given day. I have configured mod_cache as best I could, following examples…
Pistos
  • 3,093
  • 6
  • 22
  • 21
5
votes
2 answers

Apache no-cache on specific files

I have an application that has the following rewrite rule: RewriteCond /tmp/maintenance.html -f RewriteCond %{HTTP_HOST} !^backdoor.myapp.com$ RewriteRule ^(.*)$ /tmp/maintenance.html [L] This is our 'maintenance mode'. so I enable…
brad
  • 502
  • 1
  • 10
  • 22
4
votes
1 answer

Varnish + Tomcat vs Apache + mod_jk + Tomcat

Does anyone have some performance metrics for Varnish in front of 1) Tomcat or 2) Apache with mod_jk (connected to Tomcat). I know that the AJP connector is supposedly faster than HTTP, but I was thinking that Varnish which is lighter and highly…
Adrian Ber
  • 305
  • 2
  • 5
  • 16
4
votes
0 answers

How mod_cache working with "must-revalidate" and "max-age"?

Quick question before I will explain my flow: Сan mod_cache perform revalidate with if-none-match only if max-age is expired in case if it configured in reverse proxy mode? My goal is to reduce a number of revalidation requests to our the origin…
Dmitriy Sosunov
  • 181
  • 1
  • 8
4
votes
1 answer

Confused about caching solution: MemCache, Varnished, mod_cache, else?

I have a very heavy site in my server. The load of the server is always about 30-50 and sometimes it become even 150 and server work really hard. I'm looking for a caching solution that can increase performance of server and decrease the server…
bman
  • 219
  • 4
  • 13
3
votes
3 answers

set cache control header based on content type in apache

We are trying to set Cache-Control header: max-age=300, public to all our public site pages. To use Filesmatch, my applciation pages do not have any extensions. ExpiresByType is available, but it has its own disadvantages. I am looking for a way to…
skonka
  • 91
  • 1
  • 4
3
votes
1 answer

Apache caching of static content (jpg, png, js, ...) on the apache proxy server using mod_jk

I'm using an apache as frontend webserver that load balance users between 3 nodes of tomcat web servers. I use mod_jk to do that. What I want is how can I configure apache on this presentation server so that it would cache all files with specific…
tamere22
  • 31
  • 1
  • 2
3
votes
2 answers

Apache mod_disk_cache working for small files but not big files

I have enabled the mod_cache and mod_disk_cache Apache modules, to enable caching of dynamically generated images form a PHP script (based on width and height parameters). Everything works fine (Apache caches the files) whenever I supply small width…
quentinadam
  • 321
  • 2
  • 12
3
votes
1 answer

Apache mod_cache: Strip/ignore (only) Google Analytics cookies

Varnish has the possibility to strip certain cookies from the request before deciding if a request is non-cachable because it contains cookies. Is there such a thing for Apache's mod_cache? Consider this situation: Apache 2.2 is a reverse proxy with…
Paul
  • 1,918
  • 4
  • 18
  • 24
3
votes
1 answer

Apache caching based on cookie

I'm trying to put mod_cache in front of my application server to cache "public" requests but not requests from logged-in users. For various reasons using alternate subdomains or paths isn't a viable option for me. I have the basics set up as: #…
SpliFF
  • 394
  • 2
  • 8
  • 24
2
votes
1 answer

Disable mod_cache if Authorization header is present

My website serves the same pages to both logged in and logged out users. Requests from logged in users have an Authorization header. I want to use Apache's mod_cache to serve cached pages only to logged out users. Starting with a fresh server, I can…
moolagain
  • 33
  • 3
2
votes
0 answers

Apache mod_proxy + mod_cache (socache and disk)

I have here a three node apache mod_proxy load balancing cluster. now i want enable mod_cache to get more load from the backend to the frontend. So thats my config for the cache:
RAPS
  • 21
  • 1
2
votes
1 answer

Apache when to use mod_cache? disk_cache vs memory_cache?

I'm making use of Apache 2.4.10 on Ubuntu 15.04 and my entire server runs on a SSD and is virtualised in Hyper-V. When should I enable mod cache in Apache 2.4? Currently I have pretty good TTFB for static files. (0.015 - 0.020 seconds TTFB, when…
gijs007
  • 117
  • 1
  • 4
  • 18
1
2 3 4