Questions tagged [cache]
A location or process for storing of transitory or temporary data in order to improve application or system performance.
1,600
questions
1
vote
1
answer
904
views
Nginx not caching pages immediately
I am utilizing Nginx's proxy_cache module for caching but have noticed the page does not cache immediately. The content is very dynamic and each page load produces a different layout, I am trying to ...
0
votes
1
answer
215
views
autoscale static content on ec2 using local cache
Hello Serverfault members.
I want to achieve the following setup on EC2:
A load balancer starts and stops instances which only serve static content. (a javascript based application)
I do not want to ...
0
votes
1
answer
231
views
nginx didn't cache page
I have FreeBSD server with nginx as reverse proxy.
When I test it with ab util, I see some strange things, such as:
Internal pages aren't cached.
Main page is cached, but sometimes the non-cached ...
0
votes
1
answer
262
views
X-Cache: MISS from log2cache.spacecom.in
curl --head http://mashable.com
HTTP/1.0 200 OK
Status: 200 OK
Content-Type: text/html; charset=utf-8
X-UA-Compatible: IE=Edge,chrome=1
Cache-Control: public,max-age=641,must-revalidate
X-XHR-Current-...
0
votes
1
answer
316
views
How to cache all requests on given subdomain (Apache)
I have a domain like images.example.com served from Apache server. The requests that go there currently are images that are drawn using server-side language (PHP) and are cached on the application ...
11
votes
3
answers
32k
views
Will an IIS reset force cached items to be resent?
I'm trying to develop a strategy to handle cached javascript files, css, images, etc when we release an update to our site. Before I get into implementing version numbers on the javascript files I was ...
1
vote
2
answers
434
views
debugging cache control
How can I check if a website is being cached correctly?
I would like the webpages to be cached by browsers, but I also would like that page updates be visible immediatly when a user visits teh ...
2
votes
1
answer
1k
views
How does Nginx reverse proxy cache work?
I don't understand how a reverse proxy with caching works.
Let's assume that the cache is empty.
User1 loads index.php (dynamic content). There's no cache, so Nginx queries the php file. The server ...
0
votes
2
answers
157
views
Has L2 cache stopped getting faster? [closed]
I was reading this question which references L2 cache hits as taking about 10ns: Are networks now faster than disks?
However I distinctly remember there being 10ns cache ICs for the 486 generation. A ...
1
vote
1
answer
469
views
Reliably test ColdFusion server health
The Background
We're running a Varnish cache server in front of a CF/Apache2 backend server. The varnish box runs a healthcheck probe every two seconds as follows:
probe healthcheck {
.url = ...
1
vote
3
answers
419
views
nginx + php-fpm + varnish + ssl
I have a social networking site and because of that we want to run ssl all the time. does this defeat the purpose of using any type of cache system for even static content since everything will be ssl?...
0
votes
1
answer
2k
views
IIS and Static content?
Files that the browser retrieves from the server should be stored in
the browser’s cache as long as possible to help minimize server
round-trips.
But how does IIS knows what is actually a static ...
-1
votes
1
answer
571
views
Can I use Varnish to front 2 different services from different servers on 1 domain? [closed]
I've been futzing around with getting this set up however I don't know if Varnish supports what I am trying to do:
I have a server (ec2) thats running Nginx/Magento for ecommerce (www.domain/)
On ...
2
votes
1
answer
851
views
Squid takes 2 minutes to cache a small pdf
We are having a problem that certain pdf from a specific url take a long time to display. Squid seems to use a long time to cache it (over 2 minutes) for 110kb. If I browse this pdf without going ...
4
votes
4
answers
4k
views
Statically mirroring a heavy trafficked site, CloudFlare as DNS
I run a fairly heavy trafficked website and due to some unfortunate incidents the machines that are in my cloud at Linode went down. And I have only a single Load Balancer machine exposed to the ...
0
votes
1
answer
2k
views
Nginx fastcgi_cache_path
I'm new to Nginx.
My nginx cache setting in the nginx.conf
fastcgi_cache_path /dev/shm levels=1:2 keys_zone=my-cache:100m inactive=7d;
What is it means? the level, 100m and inactive=7d ?
Thank's ...
0
votes
1
answer
890
views
Ideal Varnish & nginx setup to ensure cache consistency across multiple instances
Looking for the ideal setup involving nginx as our top layer load balancer that distributes load across multiple Varnish instances.
What is the best way to distribute this load? One way would be to ...
1
vote
1
answer
545
views
Magento Full Page Cache & Load Testing
Magento Enterprise 9
Full Page Caching is on
Cache depth: 1 (ex. catalog.html?p=1)
Current results from JMeter after about 1,000 samples:
Throughput:
Homepage: 8.5/sec - ~40kb
Catalog: 6.1/sec - ~...
1
vote
2
answers
205
views
Manipulate Data in the cache proxy server DB
I am wondering if it is possible to manipulate (Insert/Delete) data in the cache proxy server DB... well I'm not sure how a cache proxy server store the data. But What I am interested in is to add ...
0
votes
1
answer
185
views
Does nginx cache (copy) my images?
I'm using http public cache all over an images website to allow clients and anyone between the clients and my server (eg: cloudflare, isp, etc) to cache HTML, assets (js/css/icons), and images (the ...
3
votes
1
answer
2k
views
XFS - Force write every n minutes?
I'm running the recently-released Fedora 18, and doing some computationally intensive things with it. The result is... unstable, at best. But! That's about what I expected, or at least not what I'm ...
12
votes
3
answers
13k
views
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 ...
5
votes
1
answer
445
views
what harm can writeback caching have on a degraded disk array?
At work I administer several machines using (real) hardware raid controllers (with battery backed write caches), and these have the nasty habit of falling back to writethrough behaviour when an array ...
1
vote
2
answers
3k
views
How can I get Nginx to tell Firefox to cache my content?
The following headers (from a static media response) don't lead to caching in Firefox. In Chrome they do.
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 22 Dec 2012 21:20:39 GMT
Content-Type: application/x-...
6
votes
2
answers
4k
views
Can nginx be made to cache upstream responses containing an X-Accel-Redirect header?
I am using nginx as a reverse proxy in front of application server. The application responds with an X-Accel-Redirect header telling nginx which static file to serve. What I'd like to be able to do is ...
5
votes
3
answers
3k
views
NGINX : Cache when X-Accel-Expires is set
I have added a X-Accel-Expires header on my static contents as well as a Last-Modified header.
I would like to know whats the correct setting to cache those elements without caching anything else.
...
0
votes
1
answer
292
views
Cache memory Ubuntu 12.04 [duplicate]
Possible Duplicate:
Why is Linux reporting “free” memory strangely?
I have noticed that the cache memory on my vps always stays around the max value. I have nothing running at the moment and the ...
3
votes
1
answer
65
views
Using a 3rd server for caching database and static content
So, I just "won" a free year for a basic VPS with 5GB storage and 256MB ram and I thought that the best thing I could do with it is to separate the memcache service from each of my other 2 servers and ...
2
votes
3
answers
4k
views
Will a raid cache be better for performance than hard drive cache speeds?
In a device that has raid 5, and a "raid cache" of 4GB, does this help performance? I have 32MB cache hard drives but I was wanting to know if the 4GB cache will make up for the difference in ...
0
votes
1
answer
2k
views
Stop Windows Domain Environment Caching Old Passwords?
I have noticed on my domain environment; the old Administrator password (before password expire).. The client machines have cached the old password and have the ability to bypass the new password by ...
1
vote
2
answers
1k
views
Caching without file extensions
I'm trying to use Varnish to show the non-logged in users a cached version of my website.
I'm able to perfectly detect if the user is logged in or out, but I can't cache pages without extensions.
...
1
vote
1
answer
487
views
Disable cache in WebSVN
I am using WebSVN.
It is quite cool but its cache directory is 6GB!
I would like to disable the cache (which is not very important for my application) or, at least, limit it.
I have checked the ...
1
vote
1
answer
1k
views
How to tell nginx to honor backend's cache?
I'm using php-fpm with nginx as http server (I don't know much about reverse proxies, I just installed it and didn't touch anything), without Apache nor Varnish.
I need nginx to understand and honor ...
0
votes
1
answer
542
views
How to enable proxy caching on Apache / Ubuntu Linux?
I have already enabled browser caching on my apache but there's another thing, audit report of chrome for my web page suggests "Leverage proxy caching (35)". Any idea how to do that?
0
votes
1
answer
442
views
Caching all files in varnish
I want my varnish servers to cache all files. At backend there is lighttpd hosting only static files, and there is an md5 in the url in case of file change, ex. /gfx/Bird....
1
vote
1
answer
472
views
Debian (wheezy) force cache to RAM
I have Linux server running about 6 game servers. I have 3 GB total of RAM but I use only about 500 MB. Is there a way to cache one of my game servers (all the files - even not actually used maps etc. ...
0
votes
1
answer
626
views
static index.html file nginx
We are using nginx with php-fpm. We plan to make first page static (generate html file). if we have 100 concurrent connections, how we can handle file regeneration? basically we need generate new file ...
1
vote
1
answer
1k
views
How to view dirty page count in Windows Server 2003
Is there a way to view the number of dirty pages (cached file pages that need to still be written to disk) in Windows Server 2003?
In Windows 7, for example, I can use Performance Monitor and use the ...
0
votes
1
answer
2k
views
Purge content in Varnish when CTRL+F5 or CTRL+R is pressed
I would like to setup Varnish to purge content in cache and get it directly from backend when CTRL+R or CTLR+F5 is pressed.
I use these rules but this only gets content from backend when CTRL+F5 is ...
1
vote
0
answers
1k
views
Nginx, wordpress: Unable to proper reverse proxy caching due to Set-Cookie. Recommendation for a good strategy
I am trying to do reverse proxy caching for a wordpress blog and I am hit with snags.
The initial configuration was a simple reverse caching like this
location / {
proxy_cache_key "$scheme:/...
0
votes
1
answer
1k
views
Have set Expiration time: Still getting "Query string present but no explicit expiration time"
I have one local Apache instance running with mod_cache (+ disk & mem) enabled, and it seems to cache content from my appserver fine. My app server sets Expiration headers and Last-modified. Yet, ...
2
votes
2
answers
5k
views
Why is IIS 7.5 flushing file cache very often?
We're running a Win 2008 R2 server with IIS 7.5 for serving image files.
It's only used for static content, and file caching has been set up to cache files for 10 minutes.
However the IIS frequently ...
0
votes
3
answers
101
views
Apache PHP out of the box caching [closed]
What is a recommended strategy from caching PHP dynamic pages? I have tried a couple of suggestions from serverfault, but they all include code changes. I was wondering if someone has been able to get ...
0
votes
1
answer
763
views
Squid reverse proxy array - siblings not communicating with each other
I want to set up 2 squid servers to act as reverse proxy and cache for a webserver on our intranet. The load balancing will be done with DNS round robin or just different mappings for different ...
2
votes
1
answer
2k
views
How to Confirm working of Nginx Caching Proxy
I am having nginx on port 80 and apache on port 8080 on same server.
I have configured nginx such that it act as reverse proxy(i am not sure whether its working or not) using this tutorial http://...
1
vote
1
answer
608
views
Nodejs for processing js and Nginx for handling everything else
I am having a nodejs running on port 8000 and nginx on port 80 on same server.
I want Nginx to handle all the requests(image,css,etc) and forward js requests to nodejs server on port 8000.
Is it ...
1
vote
2
answers
2k
views
Why, sometimes the full content is returned unchanged, while If-Modified-Since is set?
my php-generated thumbnail files and combined javascript and css files (all having their expiration dates anc cache=public set etc) return the full content sometimes, other times they load from proxy ...
1
vote
1
answer
4k
views
CSS and JS files not being updated, supposedly because of Nginx Caching
I have my web app working with AppCache and I would like that when I modify my html/css/js files, and then update my Cache Manifest, that when the user accesses my web app, they will have an updated ...
3
votes
2
answers
1k
views
Unexplained cache RAM drops on Linux machine
I run a CentOS 5.7 64 machine with 24gb ram and running kernel 2.6.18-274.12.1.el5.
This machine runs only Nginx, php-fpm and Xcache as extra applications.
Since about 3 weeks my memory behavior on ...
7
votes
3
answers
13k
views
Configuring Varnish to rewrite Expires/Cache-Control headers for client-side caching
How do I configure Varnish so that all responses to requests matching say "*.css" gets cached in the client's browser for 30 days?
What I'm trying to achieve is making Varnish set the correct "...