🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #412

cache o co chodzi?

#412
From: tomek gomek
Date: Sun, 21 Jan 2007 16:28
25 lines
1544 bytes
Witam.
Nie wiem już gdzie szukać i szlag mnie trafia.
Więc tak:
W layoucie mam:
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-store, no-cache,
must-revalidate" />
<meta http-equiv="Cache-Control" content="post-check=0, pre-check=0" />
<meta http-equiv="Pragma" content="no-cache" />

Ponadto w application.rb
[...]
	before_filter :set_charset_and_cache
  	def set_charset_and_cache
  	@headers["Content-Type"] = "text/html; charset=utf-8"
  	@headers["Pragma"] = "no-cache"
     	end
[...]

No i... zmiany w edytorze nie mają jakiegokolwiek wpływu na zmiany na
stronie. Dopiero restart Webricka pomaga ale tylko na chwilÄ™.
O co chodzi? Sprawdzałem w operze i ff. 

-- 
-= pozdrawiam tomek =-
Technical Details
Message-ID: <pan.2007.01.21.16.28.36.527924@moje.ubuntu.com.pl.eu.org>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: tomek gomek <tomekgomek@moje.ubuntu.com.pl.eu.org>
Newsgroups: pl.comp.lang.ruby
Subject: cache o co chodzi?
Date: Sun, 21 Jan 2007 17:28:37 +0100
Organization: Onet.pl
Lines: 27
Message-ID: <pan.2007.01.21.16.28.36.527924@moje.ubuntu.com.pl.eu.org>
NNTP-Posting-Host: dsl.barczewo.macrosat.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1169396871 7975 83.17.241.218 (21 Jan 2007 16:27:51 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Sun, 21 Jan 2007 16:27:51 +0000 (UTC)
X-Sender: T4YKI3yiVp/u+qcHO2o3rTTMcIiI0RHD
User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux))
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit