Return-Path: Delivered-To: apmail-incubator-trafficserver-dev-archive@minotaur.apache.org Received: (qmail 62361 invoked from network); 19 Apr 2010 19:28:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 19:28:14 -0000 Received: (qmail 28506 invoked by uid 500); 19 Apr 2010 19:28:14 -0000 Delivered-To: apmail-incubator-trafficserver-dev-archive@incubator.apache.org Received: (qmail 28467 invoked by uid 500); 19 Apr 2010 19:28:14 -0000 Mailing-List: contact trafficserver-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: trafficserver-dev@incubator.apache.org Delivered-To: mailing list trafficserver-dev@incubator.apache.org Received: (qmail 28413 invoked by uid 99); 19 Apr 2010 19:28:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 19:28:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 19:28:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3JJRnhM003944 for ; Mon, 19 Apr 2010 15:27:50 -0400 (EDT) Message-ID: <25448780.18491271705269946.JavaMail.jira@thor> Date: Mon, 19 Apr 2010 15:27:49 -0400 (EDT) From: "Miles Libbey (JIRA)" To: trafficserver-dev@incubator.apache.org Subject: [jira] Created: (TS-303) plugin idea: - a config option to transform a 'no-cache' directive into a validation 'if-modified-since' request MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org plugin idea: - a config option to transform a 'no-cache' directive into a validation 'if-modified-since' request ---------------------------------------------------------------------------------------------------------------- Key: TS-303 URL: https://issues.apache.org/jira/browse/TS-303 Project: Traffic Server Issue Type: Improvement Reporter: Miles Libbey Priority: Minor (moved from yahoo bug 633221) Original description by John Allspaw 4 years ago at 2006-04-17 11:04 This does disobey some of the HTTP specification, but it is a great performance win when you're totally sure that something hasn't/can't be changed. Squid has this, and this is ideally how it goes: "When set, this option would make TrafficServer transform a request with a no-cache directive into a validation (If-Modified-Since) request. In other words, TrafficServer ads an "If-Modified-Since" header to the request before forwarding it on. Note that this would only work for objects that have a Last-Modified timestamp." Comment 1 by Mark Nottingham 4 years ago at 2006-04-17 13:14:30 They other thing you could (optionally, depending on config?) do is to ignore cache-control request headers all together. If you're confident of the cache's correctness, this doesn't allow the browser to force a round trip back to your origin server (which could be an attack vector). It really doesn't break HTTP if you're acting as a gateway; they're allowed to do pretty much what they want. Comment 2 by John Allspaw 4 years ago at 2006-04-17 13:20:33 Mark: yeah, TS does already have the option to completely ignore cache-control headers, confirmed by Leif. I've generally thought that having the transform into IMS just adds a slight amount of flexibility than the baby/bathwater if totally ignoring. :) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.