A location or process for storing of transitory or temporary data in order to improve application or system performance.

learn more… | top users | synonyms (1)

2
votes
3answers
207 views

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 ...
1
vote
1answer
26 views

Nginx: 'no memory in cache keys zone', despite plenty of space

I'm repeatedly seeing this error in my nginx logs: [crit] 30165#0: ngx_slab_alloc() failed: no memory in cache keys zone "api-data-cache" Looking at the directory used for the cache key zone, I can ...
0
votes
1answer
2k views

Cache Control Headers with IIS 7.5

I'm trying to wrap my head around client side (web browser) caching and how it works in relation to IIS 7.5 cache control headers. In particular: If we want to force clients to reload cached ...
0
votes
0answers
27 views

Nginx not enabling cache of images (failing for Wordpress and Laravel) on Ubuntu

I have the following /etc/nginx/sites-available/livingtrustdiy.com: server { listen 80; server_name livingtrustdiy.com; return 301 https://livingtrustdiy.com$request_uri; } server { ...
3
votes
1answer
1k 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 ...
0
votes
0answers
5 views

Client-side caching of private, dynamic content [on hold]

I have a rather odd situation that I do not know how to resolve. I have a web-server (Apache httpd) that generates dynamic content, specifically a json profile for the given user, that is valid for ...
0
votes
0answers
49 views

Poor SSD I/O performance with rTorrent and Debian

I'm using a Dell PowerEdge R210 II server with Intel Xeon E3-1230, 32GB RAM DDR3, 2 x 480 GB SSDs SATA3, 2 x 1 Gbit network connection. I'm using both network connections at the same time (802.3ad ...
0
votes
1answer
1k views

How to set Nginx ignore Pragma: no-cache

I'm setting up a Nginx server for a cache proxy server. I've noticed that cache not working when this header is in request: Pragma: no-cache Without this header, cache working ok. Can I make ...
12
votes
3answers
44k views

How do I clear Chrome's SSL cache?

I have a HAProxy / stunnel server that handles SSL for our sites on AWS. During testing, I created a self-signed cert on this server and hit it from my desktop using Chrome to test that stunnel was ...
0
votes
4answers
924 views

how to set up a cache proxy server for itunes app store

I want to setup a cache proxy server for apple itunes store to accelerate app downloading in a local lan. Situation: Local internet speed is slow and bandwidth is limited, so it'll take sometime to ...
0
votes
0answers
23 views

Caching cookies with Varnish 4

I want to be able to cache pages that have a cookie. Let's say I have a cookie called "testcookie". If testcookie = 1 I want a page (cached), if testcookie = 2 it will have a different page ( i want ...
0
votes
0answers
18 views

Apache HTTPD - mod_deflate and mod_expires not applied?

I have a site that I am serving up using Apache HTTPD 2.4 on CentOS 6.6. Apache is acting as a reverse proxy to a Wildfly 8.2 server on the same host that is serving up a JavaEE web application. ...
2
votes
1answer
32 views

Group Policy to disable Thumbs.db caching Server 2012 and Windows 7 clients

We are trying to push out GPO to Windows 7 clients to disable Thumbs.db caching. The setting Turn off the caching of thumbnails in hidden thumbs.db files is found here: User Configuration > ...
3
votes
1answer
897 views

Nginx, memcached and cakephp: memcached module always misses cache

I've got a simple nginx configuration; server{ servername localhost; root /var/www/webroot; location / { set_md5 $memcached_key $uri; index index.php index.html; try_files $uri ...
0
votes
1answer
28 views

How to dynamically update page related data when FastCGI caching is enabled?

I am using php based blog on NGINX server with FastCGI cache. Without this cache, it is easy to update pageviews with every page load for a specific url. When FastCGI cache is in action, pageviews ...
1
vote
1answer
913 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
2answers
23 views

Cache HTTPS Static Assets

I will be managing a network for an African College with limited Internet access. To help reduce network traffic and increase browsing speed, I was hoping to setup a Squid like caching server. ...
1
vote
1answer
29 views

Is there a way to make GoogleImageProxy honor Cache-Control / expiration headers?

I am suddenly getting flooded with requests from Google's image proxy servers that look like the following: 66.249.81.250 - - [04/May/2015:06:55:54 +0000] "GET /images/image_1.jpg HTTP/1.1" 200 93394 ...
6
votes
2answers
58 views

Does Nginx `if_modified_since` only work on static resources?

I can't seem to find enough documentation. I have an app that generates some dynamic responses, but could still benefit from the Last-Modified header -- so I send it. However, turning on ...
1
vote
1answer
41 views

FastCGI cache is always a MISS

So, I've setup FastCGI cache like this: location ~ \.php(/.*)?$ { fastcgi_cache RWI; fastcgi_cache_valid 200 60m; set $nocache 0; if ($request_method = POST) { set ...
1
vote
1answer
29 views

What is the purpose of a ramdisk when fadvise exists?

My understanding is that fadvise will tell the system that the indicated files should be stored in the file system cache (RAM). What is the purpose of mounting a directory in a ramdisk when you can ...
56
votes
11answers
12k views

Why drop caches in Linux?

In our servers we have a habit of dropping caches at midnight. sync; echo 3 > /proc/sys/vm/drop_caches When I run the code it seems to free up lots of RAM, but do I really need to do that. ...
1
vote
1answer
195 views

Cloudflare doesn't cache as expected

I'm wondering why Cloulflare would not cache a certain static js file. Given the reuqest: curl -I http://www.testlifeinuk.com/dist/lifeinuk.js the headers returned like: HTTP/1.1 200 OK Date: ...
0
votes
1answer
22 views

refreshing Expires daily

I'm operating a website on which the (static) content is generated once daily. This allows setting the expires setting to "modification plus 1 day". (I'm running apache with mod_expires.) Most files ...
2
votes
0answers
232 views

LSA SID cache keeps old entry for renamed domain user - why?

I have a question about LSA SID cache on a domain member server. Recently I run into the issue when some users after their name was changed in AD has difficulties accessing application I support, and ...
0
votes
0answers
32 views

Protocol not available errors in squid3

I set up a transparent cache proxy on my Raspberry Pi with Squid3. Everything seems to be working fine and Squid is caching everything it's supposed to and working perfectly. The cache.log is filled ...
0
votes
1answer
918 views

Clear nginx cache via HTTP request?

I have the usual proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=drupal:16m; proxy_cache_key "$scheme$host$request_uri"; to establish proxy caching. How should I ...
-1
votes
0answers
24 views

Apache mod_mem_cache not working in windows

I am trying to use Apache httpd for caching purpose. I want to use mod_cache for the purpose. I am listening to 8000 port and have 8001 and 8002 as my balancers. I did the below two steps. I un ...
2
votes
4answers
121 views

MySQL Server : Most Frequent Requests

I would like to know if there is anyway I can display the most frequent SQL query on MySQL server in order to memcache it.
1
vote
1answer
2k views

VCL - configuration for Magento and Varnish 3.0.2

I would like to kindly ask if there's someone who can help me configure Varnish for Magento to reach far more hits. My current ratio from varnishstat is: cache_hit=271 cache_miss=926 I'm kindly ...
2
votes
1answer
82 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 ...
2
votes
1answer
141 views

Nginx or Varnish caching with multiple versions of a site

I have a website (https://mediacru.sh) that has a few versions. There's the normal desktop site, the same site with a dark theme, and the mobile site. They all share the same URLs. The theme is ...
3
votes
3answers
172 views

File Caching Proxy Server For Config Management Software (Chef)

I have several servers that I manage with Chef. They all belong to one network and bandwidth among them is big in contrast to bandwidth to outer internet. The problem is: many times there is a need ...
2
votes
0answers
37 views

Nginx cache unmanaged growth

We have two Nginx servers with independent local caches for caching images. Periodically there is problem with unmanaged growth of cache's size. This size may be far larger than max_size in ...
4
votes
1answer
3k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch ...
0
votes
1answer
1k views

Nginx proxy cache (proxy_pass $request_uri;)

I need to create proxy web using nginx. If I access http://myweb.com/http://www.target.com/ the proxy_pass should be http://www.target.com/ Here is my configuration: location / { proxy_pass ...
0
votes
1answer
88 views

How to configure .htaccess to cache root along with all other files

For my website, all files are cached except the index.html file. For .htaccess, I have: Options -Indexes RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.mywebsite\.com [NC] RewriteRule ^(.*)$ ...
2
votes
2answers
659 views

How to make an existing caching Nginx proxy use another proxy to bypass a firewall?

My question is about using Nginx as a proxy behind another proxy. (Somewhat confusing.) I want to set up Nginx so it acts as a caching proxy server to an npm mirror. Here is the link: ...
3
votes
0answers
75 views

Adding SSD cache (PCIe) to existing Linux KVM Node with SATA disks

I currently have large KVM nodes utilizing between 8 & 16 RAID10 arrays & hardware raid. We typically provision a single large volume (VM's are backed up off site as well). KVM VM's using LVM ...
0
votes
3answers
1k views

Varnish doesn't seems to be doing anything

I would highly appreciate an input on whats going wrong here: Running Magento on Ubuntu 14.04 x64 + Nginx + Mysql + Php5-FPM Please double check my steps so maybe you could help me point what's ...
5
votes
2answers
3k views

How to get Squid to not cache files with certain extensions?

I've found information on how to keep squid from caching domains/IP addresses, however, that's not quite what I want. I'd like to prevent it from caching .jnlp and .jar files. The core problem being ...
0
votes
1answer
30 views

Nginx FastCGI Caching possible on custom URL's?

I am trying to build a custom caching solution for my website with FastCGI caching. I'm trying to cache only certain URL's that get a boat load of traffic. I know from my logs exactly which URL's ...
0
votes
0answers
56 views

nginx cache always returns MISS

I have 4 upstream server and I want to serve static files. I don't want to cache API calls response. This is what my upstream server returns for a sample CSS file: curl --verbose -X GET ...
31
votes
5answers
40k views

Setting expires headers for static content served from nginx

I'm using nginx to server my static content, is there a way that I can set the expires headers for every file that meets a specific rule? For example can I set the expires header for all files that ...
1
vote
0answers
32 views

Keep file system meta data in cache with vfs_cache_pressure

My Ubuntu Linux (virtual) servers run rdiff-backup daily, which looks at all file meta data to determine what needs to be backed up, slowing it down. It does this every day, even though most files ...
8
votes
5answers
22k views

Is there a way to turn off client browser caching for specific websites?

This is a browser agnostic question but we're testing with IE9. One of the web apps our users visit is being randomly cached and changes aren't showing up when they should. No other site has this ...
0
votes
0answers
37 views

Nginx fastcgi_cache hide Set-Cookie when serving from cache

I'm trying to use nginx fastcgi_cache to serve some pages from my site, it worked fine but I found that sessions were being duplicated to all the users because Set-Cookie was cached in the response. ...
0
votes
1answer
36 views

DNS bind9 : can't see cache

I am using seed Ubuntu 12.04 with two different virtual machines: the first is for a DNS server that runs BIND9 and the second simulate a user/client. In the user machine i configure the primary DNS ...
0
votes
1answer
1k views

htcacheclean doesn't seem to be cleaning the cache

I'm running mod_cache with apache 2 on a fairly high traffic'd site. I've set the htcacheclean to run in demon mode every 10 minutes to keep the cache at 4GB. It's currently at 15GB and doesn't seem ...
2
votes
0answers
115 views

Problems on mounted NFS: 'No such file or directory' but files and directories exist

So we are having a medium-sized NFS4 storage server running CentOS 6.6 exporting an NFS share /storageDat (which is the NFS root, with two RAID volumes bound in there: ./dat1 and ./dat2); Export ...