Questions tagged [mod-cache]

48 questions
1
vote
3 answers

What is best practice for updating an entire website?

I have a site that is a complete redo of an existing one that is ready to go live. I can't find enough information to make a successful transition to the new site. I have the new site accessible from a sub domain that points to public_dev. In theory…
Justin
  • 11
  • 1
1
vote
1 answer

Cache Control Max Age Question

I am trying to understand the Cache-Control: max-age=0 configuration from below: This is a snipet from HTTP Live Headers for a static image on our landing page after hitting refresh: If-Modified-Since: Sat, 23 Jul 2011 02:05:28 GMT If-None-Match:…
roacha
  • 447
  • 1
  • 6
  • 9
1
vote
1 answer

Apache2 mod_proxy, mod_rewrite and mod_cache

I have frontend apache2 and backend tomcat6 with apache lenya. Proxy works fine but I want to cache images. Here is my simple config: ProxyPass / http://192.168.0.82:8888/ ProxyPassReverse / http://192.168.0.82:8888/ RewriteRule ^/$ index.html…
MNK_real
  • 31
  • 6
1
vote
0 answers

Purge cached data from Apache mod_cache

How to force purge cached response from Apache mod_cache (mod_cache_disk)? https://httpd.apache.org/docs/2.4/mod/mod_cache.html
mahnunchik
  • 111
  • 3
0
votes
1 answer

mod_cache not storing cache

I used this config in my virtual host in Apache 2.4 on Ubuntu 16: ... CacheQuickHandler on CacheLock on CacheLockPath /tmp/mod_cache-lock CacheLockMaxAge 5 CacheIgnoreHeaders Set-Cookie …
user2908112
  • 167
  • 1
  • 13
0
votes
2 answers

cache-control when using mod_cache and mod_pagespeed

I'm using mod_pagespeed with mod_cache. When mod_pagespeed is off and mod_cache is off I see the following header: cache-control:public,max-age=7200,must-revalidate When mod_pagespeed is on and mod_cache is off, I see the following header on the…
DD.
  • 3,114
  • 11
  • 35
  • 50
0
votes
2 answers

Strip Tomcat Headers With Apache, then Cache Resources To Disk?

I've got mod_disk_cache working great in Apache. It's caching some of the requests coming out of Tomcat. But for various reasons I won't go into, we can't get Tomcat to drop the Expires and Cache-Control headers on other pieces of content. These…
0
votes
1 answer

Apache's mod_cache not caching FCGI PHP output

I have a very simple PHP script to test my mod_cache setup. However, it's not working -- I can tell by both the 5 second delay when waiting for the page to load as well as the date printed.
Josh
  • 9,190
  • 28
  • 80
  • 128
0
votes
1 answer

Force caching of handler output which actively resists caching

I'm trying to force caching of a very obnoxious piece of PHP script which actively tries to resist caching for no good reason by actively setting all the anti-cache headers: Cache-Control: no-store, no-cache, must-revalidate, post-check=0,…
deceze
  • 483
  • 1
  • 6
  • 20
0
votes
2 answers

Mod_cache is not logging or caching

Apache 2.2 on RedHat 6.3. I have a virtual host that is setup like so: ServerAdmin some@email.com DocumentRoot /home/xxxxx/Sites/xxxxxxx.com/htdocs ServerName xxxxxxx.com ServerAlias xxxxxxxx.com SuexecUserGroup…
user1663896
  • 9
  • 1
  • 3
0
votes
1 answer

Disable mod_cache to fix website

I am working on a website that runs on WordPress. The an error occurs when accessing the blog page that it displays the RSS feed (in XML) rather than the posts. After some research I found out the when enabling mod_cache this error sometimes occurs.…
Zach Russell
  • 277
  • 1
  • 3
  • 13
0
votes
1 answer

See requests to real server with mod_proxy

My setup involves using apache with mod_cache and mod_proxy to proxy and cache xml data between my iOS app and a web service. Right now I'm using awstats to see how many requests my iOS app is making to my proxy server. Is there any way to see stats…
edc1591
  • 173
  • 2
  • 9
0
votes
2 answers

Caching query strings in an Apache proxy

I had problems getting disk_cache to work, and I was not able to see why. This was the relevant section from my config # Caching CacheRoot "/var/cache/apache2/" CacheEnable disk / I was timing a request such as the following, but caching seemed…
oligofren
  • 641
  • 2
  • 8
  • 23
0
votes
2 answers

Configuring mod_mem_cache to only cache certain content types and finding out what is cached

I've installed Apache's mod_mem_cache on a server that serves multiple websites. I needed to install it in a hurry as I had a massive traffic spike and was firefighting. It has improved performance massively and all of my sites seem to be serving…
Steve Claridge
  • 123
  • 1
  • 6
0
votes
1 answer

.htaccess to match paramaterized URLS

I am trying to set a cache control header when a browser requsets the following url: www.example.com/php/getData.php?exampleField=exampleValue As even though getData.php is a dynamic page, when the parameter exampleField equals exampleValue the…
Aly
  • 133
  • 8