A location or process for storing of transitory or temporary data in order to improve application or system performance.
Questions tagged [cache]
1588 questions
13
votes
2 answers
Purge varnish cache for a single url using varnishadm
Varnish is being used in a Wordpress website.
I would like to purge Varnish for a single URL instead of a whole domain.
With this command I can restart Varnish for the whole domain:
varnishadm -T :6082 -S /etc/varnish/secret 'ban req.http.host ~…

rfc1484
- 201
- 2
- 3
- 7
13
votes
5 answers
Does it matter in which order rules are placed in htaccess?
I hope this is a simple YES or NO answer (please specify why)
Q1: Does it matter in which order rules are placed in htaccess?
Especially when they are completely separated items.
Q2: If yes, am I applying the right order?
I want to to speed up the…

Sam
- 423
- 3
- 7
- 23
12
votes
2 answers
Windows Server 2008 R2 64-bit memory leak
I´m having trouble in one of my office servers. It´s a virtualized Windows 2008 R2 Server with 6GB RAM memory. It only has Microsoft SQL Server (memory assigned maximum = 3GB), and just a software that is not consuming more than 1GB RAM.
However,…

Guillermo Zooby
- 223
- 2
- 8
12
votes
5 answers
How to solve "ExpiresActive not allowed here" error message in .htaccess file?
I am trying to add Expires headers to the HTTP responses of the site I am working on. The only way for me to control the Apache 1.3 server is by editing my .htaccess file. I tried adding code such as the following to enable the Expires…

Daan
- 223
- 1
- 2
- 7
12
votes
2 answers
Tomcat 8 org.apache.catalina.webresources.Cache.getResource
I have just upgraded from 7.0.52 to 8.0.14.
I am getting this for lots of static image files:
org.apache.catalina.webresources.Cache.getResource Unable to add the
resource at [/base/1325/WA6144-150x112.jpg] to the cache because there
was…

iainmac999
- 223
- 1
- 2
- 4
12
votes
6 answers
sssd and ldap authentication cache
On our box running OpenSUSE 12.2 we have installed OpenLDAP and sssd daemon. We are using these two services for user authentication. Recently we created a script which creates new web-users for our vhosts dynamically, but now we are dealing with a…

Seth Rayer
- 121
- 1
- 1
- 3
12
votes
5 answers
How to configure nginx to serve static contents from RAM?
I want to set up Nginx as my web server. I want to have image files cached in the memory (RAM) rather than disk. I am serving a small page and want a few images always served from RAM. I don't wish to use Varnish (or any other such tools) for this…

Vijayendra
- 245
- 1
- 2
- 6
12
votes
3 answers
Tuning Linux disk caching behaviour for maximum throughput
I'm running into a maximum throughput issue here and need some advice on which way to tune my knobs. We're running a 10Gbit fileserver for backup distribution. It's a two disk S-ATA2 setup on an LSI MegaRAID Controller. The server also got 24gig of…

Peter Meyer
- 440
- 1
- 4
- 12
12
votes
5 answers
How to load-balance SQL Server 2008 for high-usage ASP.NET applications?
Imagine that you have a successful web application that uses ASP.NET and IIS 7. It generates many calls to a SQL Server 2008 database, and is expected to be available to the public with 99.9% uptime (downtime of 8 hours, 45 minutes per year).
Our…

Yakov-MIK
- 123
- 1
- 1
- 5
12
votes
4 answers
How to clear (remove/delete) certificate (ssl/https) cache from chrome browser?
I lost many hours while setting up some self-signed certificates; the problem turned out to be that the browser (Chrome) cached a bad version of the certificate and then just wouldn't let go. I did lots of experimentation modifying the certificate,…

IAM_AL_X
- 231
- 1
- 2
- 5
11
votes
1 answer
How to add response headers with HAproxy 1.6 based on request URI?
I use HAproxy 1.6 as load balancer in front of tomcat servers.
I need to add response headers based on the request URI.
For e.g., I'd like to add the response header Cache-Control public,max-age="600" when the request uri is /api but not when the…

jmlrt
- 113
- 1
- 1
- 7
11
votes
2 answers
bind9 does not resolve dnssec correctly
I have a problem with my dns server setup. My bind server is mainly a cache-server but does also serve some internal domains. It listens only on my private network and serves only requests from there.
Today I wanted to enable the bind to validate…
user364476
11
votes
2 answers
nginx use proxy cache if backend is down
I need to nginx proxy use cache if backend server down:
this is my configuration. but seems be nginx use cache without check backend server.
http {
# ...
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
…

Mohammad Hossein Fattahizadeh
- 471
- 1
- 9
- 27
11
votes
5 answers
How do I add no-cache headers to all 404 pages served by apache and nginx?
I have recently run into an issue after switching to Cloudflare, and the solution is to basically stop Cloudflare from caching 404 responses.
In our load-balanced multi-server setup, occasional 404s happen, but they're quickly fixed by rsync (via…

Artem Russakovskii
- 1,003
- 3
- 12
- 25
11
votes
3 answers
Why does Apache send 200 OK while Last-modified matches If-modified-since?
I'm trying to have a basic behavior regarding my caching strategy: files should be cached, and revalidated with server each time. So I would like Apache to send a 304 back.
Here is the dialog that happens for each browser refresh:
Status Code:200…

zrz
- 253
- 1
- 5
- 10