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
0answers
448 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
43 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
522 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
123 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
61 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
17 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
207 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
868 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
2k 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
2k 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
277 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
107 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
1answer
65 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
200 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
54 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
170 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
39 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
524 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
88 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
1answer
70 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
72 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 */ ...
4
votes
1answer
3k 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 ...
0
votes
2answers
118 views

Web caching with SSL connection and dynamic contents

I have some questions about web-caching systems. If I use systems like Squid, Varnish as reverse-proxy in front of my architetture: Is possible to have SSL connection from user to my proxy and SSL ...
0
votes
1answer
43 views

What type of caching is involved in the displayed usernames of file owners/security on member servers

One of our domains has two Windows 2008 r2 servers: a domain controller which also holds all the FSMO roles and member server. If I rename a domain user, then use Windows explorer to look at a file ...
1
vote
1answer
118 views

What config files does Apache currently have loaded

I'm using Openpanel on my Ubuntu server (fully updated/upgraded last night) and I've got a small issue where I'm sure not all of my config files are being included and thus causing issues with not ...
0
votes
1answer
243 views

Chrome not caching CloudFront video/audio; CloudFront delivers http 1.0 headers

With the following response header: HTTP/1.0 200 OK Content-Type: video/mp4 Content-Length: 3294545 Connection: keep-alive Date: Thu, 30 May 2013 21:17:34 GMT x-amz-meta-s3cmd-attrs: ...
0
votes
0answers
270 views

APC is behaving weirdly in combination with PHP5-FPM and Nginx

I've got APC running on my Ubuntu 13.04 Server box for quite a while now. A couple of days ago, something, somewhere went wrong and now it's acting very strangely. I'll lay it out. APC 3.1.13 ...
0
votes
3answers
265 views

Is it possible to cache subversion?

Is it possible to cache subversion at all? May be any commercial solution? Any help would by highly appreciated.
4
votes
1answer
319 views

Data syncing behavior for filesystems in Windows

In Linux mounting supports commit option, which is described in mount(8) man page as: commit=nrsec Sync all data and metadata every nrsec seconds. The default value is 5 seconds. Zero ...
0
votes
5answers
2k views

Configure Squid to cache images explicitly called from img src=“”

Instead of hot-linking to external images from my application I'd like to cache them on my server where my web app resides, e.g. instead of <img src="http://api.domain.com/image/1234.jpeg" /> ...
1
vote
1answer
200 views

Why does this HTTP header configuration cause browsers to always perform If-Modified-Since requests?

On our server, we have configured http response headers as follows: Cache-Control:max-age=28800, must-revalidate # (8 hours) Connection:Keep-Alive Date:Wed, 24 Apr 2013 21:36:19 GMT ...
0
votes
1answer
148 views

nginx proxy_cache or Memcached

I currently use nginx's proxy_cache for file-based caching in front of three Django applications (Apache/mod_wsgi). For some locations/URLs, I disabled proxy_cache and used Memcached (per view) within ...
0
votes
1answer
387 views

Varnish Cache and IPB (Invision Power Board) - admin accounts do not stay logged in

I have a cPanel Server running Varnish Cache - I use the plugin from unixy.net. I have a website on there that uses IPB and when Varnish is installed admin users will not stay logged in. The first ...
0
votes
0answers
60 views

How do I figure what process is caching DNS

There seems to be some form of DNS caching on my machine as my networking scripts continue to give gaierror even after a broken connection has been reinstated. There is no nscd installed and dnsmasq ...
1
vote
2answers
2k views

Setting up a reverse proxy to cache images

I wrote a quick Python server to serve resampled images. For example, a URL might look something like http://images.domain.com/resample/100x100/9f362e1994264321.jpg. Being that resampling images is ...
1
vote
1answer
305 views

Apache mod_ldap / mod_authnz_ldap not caching?

I have an Ubnutu 12.04 server running Apache2 that is configured as a reverse proxy. Apache has been further configured for basic authentication via LDAP. Everything is working fine, except the ...
2
votes
2answers
223 views

Varnish - Cookie

I have the following situation: On my site, javascript sets a cookie that contains relevant information for generating the markup. I therefore want Varnish to cache each page separately for each ...
1
vote
1answer
241 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 ...
9
votes
3answers
514 views

Irregular internet disruption: certain images and JS not loading

first time on ServerFault, and I've got a nice little conundrum. Since a few months now, we've been having issues with our internet connectivity. Environment: Servers: 2 Terminal Servers as an ...
0
votes
1answer
92 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 ...
0
votes
0answers
238 views

nginx caching and proxy pass

I'm trying to use nginx to proxy CDN use for our site to prevent raw video access when people put the CDN URL into their browser, and instead redirect them to a video page. If it's not a cacheable ...
1
vote
1answer
251 views

Caching large amounts of data

We need to cache all psd/zip files from our amazone S3 storage. The amount of the cache between 150-200 Gb (we need to store files at least 2 month). Now we use transparent proxy squid without any ...
0
votes
2answers
113 views

Set “expires” in nginx for multiple vhosts

I use the "apache style" nginx config (include /sites-enabled folder files and a single .conf for every website I host). How can I set this: location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { expires 30d; ...
0
votes
1answer
314 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 ...
5
votes
1answer
140 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 ...
0
votes
1answer
2k views

Caching similar to Varnish on Windows Server [closed]

I'm looking for a caching for IIS similar to the Varnish.. But as Varnish is not recommended on Windows, I would like to have suggestions as what are the other alternatives that can be used for ...
0
votes
1answer
415 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
1answer
392 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
1answer
77 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 ...
2
votes
2answers
996 views

Varnish going sick

I'm having trouble with Varnish, it works for a couple of views and then just goes sick... The weird thing is that it does work for about 20 or 30 requests. If I call apache directly it works fine. ...