Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4EADE1898E for ; Mon, 16 Nov 2015 22:55:37 +0000 (UTC) Received: (qmail 38873 invoked by uid 500); 16 Nov 2015 22:55:32 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 38816 invoked by uid 500); 16 Nov 2015 22:55:32 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 38805 invoked by uid 99); 16 Nov 2015 22:55:32 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2015 22:55:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C095F180A60 for ; Mon, 16 Nov 2015 22:55:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6XwVtv_NJcei for ; Mon, 16 Nov 2015 22:55:31 +0000 (UTC) Received: from vms173023pub.verizon.net (vms173023pub.verizon.net [206.46.173.23]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B30C120271 for ; Mon, 16 Nov 2015 22:55:30 +0000 (UTC) Received: from Christophers-MacBook-Pro.local ([71.127.40.115]) by vms173023.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NXX0076ZJNU2KJ0@vms173023.mailsrvcs.net> for users@httpd.apache.org; Mon, 16 Nov 2015 16:55:16 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=WcjxEBVX c=1 sm=1 tr=0 a=tVXBnewmVzifmTgg5+7jYA==:117 a=-57I09spAAAA:8 a=oR5dmqMzAAAA:8 a=IkcTkHD0fZMA:10 a=qtqOOiqGOCEA:10 a=mV9VRH-2AAAA:8 a=SSmOFEACAAAA:8 a=iw096G4GUgiGdBC62YMA:9 a=QEXdDO2ut3YA:10 a=-agQfb7JRY4A:10 a=-NDPw9pSy5sA:10 a=-YYweglWM8UA:10 To: users@httpd.apache.org References: <023d01d120ac$1ebb4c30$5c31e490$@cm5.com.br> <20151116205214.GH2362@palma.openstrike.co.uk> From: Christopher Schultz Message-id: <564A5ECA.9040104@christopherschultz.net> Date: Mon, 16 Nov 2015 17:55:06 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: <20151116205214.GH2362@palma.openstrike.co.uk> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Subject: Re: [users@httpd] How to force browsers doesn't use cache Pete, On 11/16/15 3:52 PM, Pete Houston wrote: > On Mon, Nov 16, 2015 at 06:19:37PM -0200, Ronaldo Luiz de Carvalho wrote: >> There are a way to setting apache in a way to force the users site browsers >> doesn't use their cache? > > You can use the Header directive to set the appropriate value of the > Cache-Control header. > > http://httpd.apache.org/docs/2.4/mod/mod_headers.html#header > http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 +1 Plus the "Pragma" header for ancient clients, if you want. This is how we do it: Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 Make sure you don't overdo this... if you have .css, .js files, etc. that *should* be cached, don't let this apply to them. -chris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org