2
votes
0answers
63 views

Nginx not honoring must-revalidate

I want to use nginx as a caching reverse proxy. I also have a special requirement, which I thought could be accomplished with nginx. I am using Amazon s3 as origin server and I use signed urls to ...
3
votes
0answers
41 views

Why doesn't Android cache Apple Touch Icons? [closed]

I'm not sure if this applies to every Android phone, but it seems that many Android browsers don't cache the Apple Touch Icon and reload it on every page view. I have the following in the ...
1
vote
1answer
247 views

Configure nginx for max-age=0 requests

I'm using nginx as a reverse proxy with proxy_cache. The back-end is setting cache-control response headers which makes nginx serve responses from cache when possible. However I would like to allow ...
1
vote
1answer
230 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
1answer
62 views

Varnish Working with Custom http response Headers

I am trying to read http response header that holds an "cacheable". For Example: if (req.http.X-Type ~ "cacheable") { unset req.http.Cookie; return(lookup); } I've Tried a lot of things ...
0
votes
1answer
232 views

Mod_cache is not logging or caching

Apache 2.2 on RedHat 6.3. I have a virtual host that is setup like so: <VirtualHost xxx.xxx.xxx.xxx:80> ServerAdmin some@email.com DocumentRoot /home/xxxxx/Sites/xxxxxxx.com/htdocs ServerName ...
0
votes
0answers
52 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
105 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 ...
2
votes
2answers
708 views

nginx: Specify custom headers in rewritten location blocks

I'm trying to set some headers only for specific location blocks in nginx. The problem I have is that those location blocks contain rewrite statements, which apparently seem to drop the custom ...
1
vote
2answers
364 views

Http header 304 and caching?

Our company uses these settings( don't ask me why) - for every request they want a new request from server. this is an intranet system which uses only IE. They defined it in : We also have ...
1
vote
1answer
1k views

How to make sure clients update their browser cache when my website is updated?

I am using the HTTP 1.1 Cache-Control header to implement client-side caching. Since I update my website only once a month I would like the CSS and JS files to be cached for 30 days with ...
3
votes
1answer
522 views

Varnish purge on POST or PUT

In my application stack, I'm using CouchDB (in this scenario, to all intents and purposes it's a simple REST server) and I want to put Varnish in front of it to alleviate read load. I know that ...
1
vote
1answer
341 views

mod_rewrite in .htaccess causes header not to be applied - why?

Excerpt from <VirtualHost *:80> section in httpd.conf (goal: set Cache-Control for all JavaScript files): <LocationMatch "\.js"> Header set Cache-Control "max-age=290304000, public" ...
1
vote
1answer
362 views

Sending HTTP headers by webserver or PHP?

It is equally possible to send HTTP headers by webserver or script. I use PHP on Nginx. Is there any different to send HTTP headers (such as Cache-Control) by nginx or PHP? Is it faster to send ...
3
votes
1answer
460 views

Image caching using HTTP_IF_MODIFIED_SINCE

I found that adding RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}] RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}] To the bottom of my htaccess file (below all ...
1
vote
1answer
1k views

What is the maximum file size that will be cached by a browser? [closed]

What is the maximum file size that will be cached by a browser? Note that I don't mean the maximum size of the browser cache. I mean, what is the maximum individual file that will be cached. If ...
0
votes
1answer
700 views

Good resources for understanding HTTP, Browsing, caching, web server security etc? [closed]

When I ask questions, many of the times, people leave answers like "first learn about this (or that)." The problem is, I don't know if I can find books specifically written on those subjects. Here ...
1
vote
2answers
1k views

nginx status code 200 and 304

I'm using nginx + passenger. I'm trying to understand the nginx response 200 and 304. What does this both means? Sometimes, it responses back in 304 and others only 200. Reading the YUI blog, it seems ...
5
votes
1answer
907 views

Use Cherokee Instead of nginx in Front of Varnish to Get HTTP 1.1 Optimizations?

We have been running nginx -> uWSGI, and now we are evaluating putting Varnish as a caching layer between nginx and uWSGI (similar to http://www.heroku.com/how/architecture). But, nginx only supports ...
0
votes
2answers
339 views

If a server returns Cache-Control=public with no Max-Age or Expires, can a proxy cache it forever?

If a server returns Cache-Control=public with no Max-Age or Expires, can a proxy server cache it forever? Do proxies or the spec have a built-in default for these values? Is it always wrong for a ...
1
vote
2answers
115 views

How can I tell if an HTTP request is hitting a proxy cache

If I'm sitting inside a corporate firewall and I'm seeing unexpected (ie, out of date) responses to HTTP requests. What are methods for determining whether there is a cache sitting somewhere between ...
4
votes
1answer
1k views

Varnish doesn't seem to be caching

I've setup a Varnish cache mirror to sit in front of a file server, but it seems to be endlessly re-downloading data from my file server. There's about 100GB of data in total, but so far Varnish has ...
3
votes
2answers
3k views

How to make Varnish ignore, not delete cookies

I want to use Varnish to cache certain pages even in the presence of cookies. There are 3 possibilities that I need to take care of: An anonymous user is viewing some page A logged in user is ...
0
votes
3answers
160 views

Filesystem cache accessible via HTTP?

After searching the web for hours and couldn't find what I was looking for, I thought someone here might have an idea ;-) I'm looking for Linux a program that will cache in memory a designated ...
1
vote
1answer
620 views

Squid: cache content for n minutes no matter what

I am administrating a network for a group of programmers developing a web spider. We want to setup a squid cache so to be nicer to all those servers in the web. (And also so that our tests run ...
2
votes
2answers
1k views

Unusual Caching Issue with IE 7/8 and IIS 7

We recently moved a site into production running Server 2008 x64 and IIS 7. The ASP.NET pages apparently load just fine, but when it comes to IE 7 and 8, a weird caching issue has cropped up with the ...
4
votes
1answer
3k views

Serving application HTTP/5xx error pages via Varnish

I an working on running a few Rails applications through Varnish to provide better caching support which will hopefully be more flexible then the build in page-cache options in rails. One issue I ...
2
votes
3answers
915 views

How to ignore query parameters in web cache?

Google Analytics use some query parameters to identify campaigns and to do cookie control. This is all handled by javascript code. Take a look at the following example: ...
0
votes
2answers
578 views

HTTP proxy (caching) for Ubuntu Hardy?

I'm trying to find a good HTTP proxy for personal use (I might want to experiment with the code too.) Other than squid, I found tinyproxy and polipo, but apparently tinyproxy doesn't do caching. Do ...
3
votes
3answers
3k views

Ignoring GET parameters in Varnish VCL

Okay: I've got a site set up which has some APIs we expose to developers, which are in the format /api/item.xml?type_ids=34,35,37&region_ids=1000002,1000003&key=SOMERANDOMALPHANUM In this ...
0
votes
2answers
3k views

Squid closing the connection on long HTTP GET requests

When running a database query on a specific external site we use, Squid seems to cut off the connection after a consistent period of time (just over a minute). The query is submitted through a ...
2
votes
2answers
2k views

File Specific cache http header for IIS 6

Is there a way to set cache related header for a specific file type in II6? We want to turn off cache on all our *.js and *.css file here, but IIS6 is forcing us to do a all or nothing approach.
2
votes
2answers
104 views

Harvesting Dynamic HTTP Content to produce Replicating HTTP Static Content

[I asked this on stackoverflow.com, but they thought that this list would be better] I have a slowly evolving dynamic website served from J2EE. The response time and load capacity of the server are ...
7
votes
5answers
4k views

Squid or Other HTTP Caches with SSD Cache Store?

I'm contemplating setting up a squid (or possibly varnish) cache on a system with SSD drives. The obvious benefit is that these systems have great READ speeds and I expect my hit ratios to be fairly ...