In computer engineering, a cache is a component that transparently stores data so that future requests for that data can be served faster.

learn more… | top users | synonyms

0
votes
1answer
35 views
+100

Update Cache-Control max-age when srcache returns response from cache

I have configured Nginx to use srcache (along with the redis and redis2 modules). Server-side caching works great. My application responds with the appropriate Expires and Cache-Control headers, and ...
0
votes
2answers
52 views

APC file cache not working properly getting internal server error 500

I am having some problem with APC working properly. File cache always shows Hits = 1 and misses keep increasing, but at the same time, the cached file entries show some numbers in hundreds over some ...
0
votes
1answer
30 views

images not cached with self-signed SSL certificate

I'm experiencing a problem where certain content (images) are not being cached when loaded from an https connection. The issue is occurring on both local and remote hosts, both are using self-signed ...
0
votes
1answer
52 views

Is enabling MySQL query_cache_size Innodb Lock Safe?

The query_cache_size looks like the kind of setting that one would usually want enabled which puzzled me since it defaults to 0. Then I read the following about the query_cache_wlock_invalidate ...
0
votes
0answers
46 views

Cachefilesd (cachefiles) everything seems to be set up, still not working

I'm trying to set up cachefilesd to work with my network folder shared using NFS. I have seemingly everything set up, however cachefilesd starts normally, however caching isn't functioning. Here is ...
2
votes
1answer
121 views

How to invalidate nginx reverse proxy cache in front of other nginx servers?

I'm running a Proxmox server on a single IP address, that will dispatch HTTP requests to containers depending on the requested host. I am using nginx on the Proxmox side to listen to HTTP requests ...
1
vote
1answer
73 views

VPS SSD hosting or normal RAID 10? [duplicate]

I have built a REST based API (using asp.net WebAPI) which returns RSS feeds to my mobile application. There are around 30,000 active users of my mobile application which access this RSS feed. As per ...
0
votes
0answers
39 views

Does Apache or Nginx Proxy serve the browser caching directives?

I am running nginx as a proxy for my apache server. I am trying to leverage browser caching for PNG and JPG files. Which of these two should have the caching settings applied? I believe they both have ...
1
vote
1answer
23 views

Is there a way to clear the Zeus/Stingray cache without using SOAP

There is an example here of how to clear the content cache in Stingray using the SOAP api https://splash.riverbed.com/docs/DOC-1238 However, I know that Stingray does write a lot of things to flat ...
0
votes
0answers
22 views

Altering Cache value based on php response of an image or html in Nginx

I'have a set up where a PHP script dynamically creates images based on size and the device requesting them. Everything is working fine apart setting a higher cache expiry for images when they are ...
0
votes
1answer
42 views

Mirrored cache server on an EC2 Cluster?

I have EC2 instances serving up a non-intensive, relatively low traffic website, and rather than shelling out for ElasticCache I was thinking of doing the caching on each server and mirroring the data ...
3
votes
1answer
88 views

iozone: 5 concurrent threads random read of 300K blocks does more ops/s than using only one thread, what could be the underlying reason?

The partition is in RAID1 using software RAID. Command line used: iozone -s 190g -r 300k -O -b test_file OPS Mode. Output is in operations per second. ...
0
votes
0answers
52 views

Nginx cache shared between multiple servers

We have 8 REST-ish API servers with Nginx using FastCGI with PHP-FPM to handle requests. We're currently using Nginx' FastCGI caching (directives like fastcgi_cache_path). This means that API ...
2
votes
1answer
45 views

Storing plaintext passwords for SVN

I'm on Windows, using SVN as a part of SharpSVN library. I need to store my passwords in plain text. I tried putting the following in my servers file: store-passwords = yes store-plaintext-passwords ...
0
votes
0answers
50 views

How to use Redis as a cache backend for uwsgi_cache in Nginx

I'm using Nginx with HttpUwsgiModule and i want to perform caching. I know that there is a uwsgi_cache which can be used to cache pages on the local file system. But i want to use Redis to cache pages ...
0
votes
2answers
186 views

Enable nginx browser catching for specific url

How can I enable nginx catch for specific URL? I have a django web app and I put my static files such as CSS, JavaScript and ... in a folder called static and I can access them via ...
1
vote
1answer
143 views

Nginx: How to set expiration for 404 responses?

My nginx server acts as a proxy for another server, which sometimes returns 404s. I want the 404 responses to be cacheable, just like 200 responses. However, I cannot use expires, because the ...
1
vote
3answers
74 views

Varnish Cache: How does Varnish play with other caching systems?

I'm considering installing Varnish cache in front of my forum platform to speed it up even further. It already runs Percona MySQL DB, PHP 5.5.8 (which has Opcode caching built in, and running) and ...
0
votes
1answer
170 views

Varnish stops listening on port 80 after few hours

I have configured varnish to listen on port 80 and nginx to listen on 8080. After around 24 hours of uptime, my site has been down for 22 hours. I checked in and found varnish isn't listening on port ...
0
votes
0answers
126 views

Attribute caching of dovecot maildir boxes over NFS

I admin a mail server cluster: there're two different hosts that use a common NFS share to store maildir. Dovecot is the LDA. CPU load on NFS is really high, although real i/o operation on the disk ...
1
vote
1answer
282 views

PowerEdge T110 ii and PERC H200 battery? [closed]

I'm confused. I have a PowerEdge T110 ii server with a PERC S100 card, sad to say, the S100 does not have drivers for Windows 2012 R2, Dell recommends you upgrade your PERC card or forget about the ...
0
votes
0answers
57 views

Are there any performance benefits when using Redis caching combined with Nginx caching?

I came across these posts about putting Redis in front of Nginx. I also noticed the Nginx HTTPRedis module. Which seem interesting from a performance standpoint, but I don't have much experience in ...
0
votes
0answers
32 views

nginx - BOA: “[alert] stalled cache updating” when running purge

I have BOA 2.1.0 installed, which uses nginx. Default caching is running by nginx. Unfortunately, whenever I am issuing a purge command, curl -X GET -H "Host:www.domain.com" ...
0
votes
1answer
95 views

How do I set up Apache HTTPD as a proxy service for HTTPS?

I am trying to set up a proxy service for a packaging service (npm and bower.io) and I’d like to cache the packages locally. My Apache configuration: Listen 127.0.0.1:10010 Listen 127.0.0.1:10011 ...
1
vote
0answers
39 views

How to make BIND return old cached enties if all forwarders are failed?

I have a local forwarding BIND server installed at localhost. In its configuration there is a couple of forwarders: options { ... forwarders { 1.2.3.4; 5.6.7.8; }; ... }; Servers which are pointed ...
0
votes
0answers
262 views

Nginx does not cache json

I have the following nginx configuration user nginx; worker_processes 10; pid /var/run/nginx.pid; events { worker_connections 1000; } http { sendfile on; tcp_nopush on; tcp_nodelay ...
0
votes
0answers
33 views

Amazon cloud front caching is not working

we have setup in such a way that end user request goes to Amazon cloud front and if cached resource is available on Amazon Cloud front otherwise it will forward request to origin (nginx server on ...
1
vote
1answer
222 views

ARR - dynamically disable disk caching for certain requests (authenticated users)

This is about Application Request Routing and dynamically disabling disk caching for certain requests (where the requests come from authenticated users; whether they're authenticated can be decided by ...
1
vote
1answer
86 views

Amazon CloudFront Synchronization

I want to leverage Amazon CloudFront to "cache" my webserver such that my website stays up even if my webserver goes down. I understand CloudFront has many edge servers that facilitate the ...
0
votes
0answers
39 views

Clear NGINX cache using FTP

I have an NGINX server set-up to handle caching for a website (running elsewhere). Works like a charm, however we want to administrators to have an option to flush the cache from their backoffice. I ...
0
votes
1answer
15 views

Caching proxy access control

I want to use a caching proxy to force all connections on my page over SSL, and let the unsecure connection be handled by the proxy. This proxy is accessible from the web. Now I was wondering what's ...
1
vote
1answer
107 views

Serving a file with an expires header depending on when it was last modified

In nginx is there a way to conditionally serve a file with different expires headers depending on when the file was last modified? For example, if foo was modified within the last week then I want it ...
3
votes
1answer
509 views

flashcache with mdadm and LVM

I am having trouble setting up flashcache on a system with LVM and mdadm, I suspect I am either just missing an obvious step or getting some mapping wrong and hoped someone could point me in the right ...
1
vote
1answer
657 views

How to configure Varnish not to cache a particular folder?

I would like to set up Varnish as reverse proxy cache for Apache. How can I setup Varnish so that it does not cache content from a particular folder (and its subfolders), let's say ...
0
votes
2answers
510 views

How can I set up Varnish to cache only static content?

I would like to set up Varnish as reverse proxy cache for Apache. How can setup Varnish so that Varnish should serve all static data (jpeg, jpg, png, gif, ico, js, css, txt, pdf, gz, zip, lzma, bz2, ...
0
votes
1answer
173 views

Tell browsers to cache until last modified date changes? [closed]

My web site consists of static HTML files which are usually republished once per day, and sometimes more. I'm using Apache. In the vhost settings for my site, I'd like to tell browsers to cache HTML ...
0
votes
2answers
69 views

website shows incorrect server in some browsers after dns change

Ive recently transferred a domain to a new registrar and pointed it to a new server in the A records. Some computers show the correct server but scarily some of them show the old one. I don't think ...
0
votes
0answers
287 views

Apache Tomcat browser caching with expires module

I'm using Apache Tomcat with mod_jk for our sites on Ubuntu servers. I'm trying to cache all the images in the browser for faster reloading of web pages. I have few images from CDN and some are in ...
0
votes
0answers
10 views

Caching response from an authenticated API

I'm hoping to start work on a REST API to be used internally, it will require authentication, probably just using HTTP basic auth, but in many cases all that will be used for is verifying that the ...
0
votes
1answer
53 views

Nginx cache entire site while performing MySQL maintenance

I currently have a high traffic WordPress site that is entirely static. But it currently generates each page via the MySQL database anyway (I know I should be caching content). I will be moving the ...
0
votes
1answer
137 views

“Syntax error at 'input'” when restarting Varnish; something wrong with default.vcl

Here's the default.vcl, varnish configuration file, that I've built after lots of reading and referring: backend default { .host = "127.0.0.1"; .port = "8080"; } acl purge { "localhost"; } # ...
1
vote
2answers
47 views

Varnish keeps caching subdomains I ask it not to

I'm trying to configure varnish not to cache any domain that begins with "staging" using the pass method like so: if( req.url ~ "^(staging.)" ) I suspect I'm using VCL selectors wrong but after ...
2
votes
1answer
103 views

Nginx and js/css versioning via browser's cache

I want to easily clear the browser's cache when js/css files are updated. Real file location: /js/some-files.js /css/some-files.css File location set in the app to be called by browser: ...
0
votes
1answer
35 views

Does nginx cache the unencrypted responses when using HTTPS?

I thought public cache was not possible when using HTTPS since every response was different (due to encryption), but just now I realized one could at least cache the unencrypted response, and the only ...
0
votes
1answer
256 views

Microcaching with nginx & uwsgi [closed]

i am running my personal website written with python on nginx with uwsgi. Since the site is very static i want to improve the performace by adding microcaching. Both nginx and also uwsgi do offer ...
0
votes
0answers
65 views

How to prevent nginx from caching certain files?

Is it possible to configure nginx to never cache certain files? I have two files on the root directory, index.html and list.json, and I want to disable caching for them completely. Can this be done by ...
0
votes
0answers
428 views

How to add a custom header despite a RewriteRule redirecting to 304?

I have an apache2 server set up to return 304 responses when appropriate. I implemented it with a rewrite rule, like so: <VirtualHost *:9290> (...) Header set Last-Modified "Tue, 01 Jan ...
0
votes
1answer
54 views

How to do Caching only for specific IP's, in Nginx or Rails

We have a Rails 2.3.8 app running on a nginx/passenger server. Recently the crawlers generate a huge load on us. We'd like to turn on page caching ONLY for crawlers (specific IP addresses), i.e., ...
1
vote
1answer
53 views

detect return code (mode) in varnish hook

In vcl_recv I decide whether to pass or lookup based on the existence of a cookie: sub vcl_recv { if (req.http.Cookie ~ "(JSESSIONID=)" ) { /* do not cache logged in users */ ...
2
votes
1answer
1k views

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 ...