Thread View: pl.comp.lang.ruby
2 messages
2 total messages
Started by tomek gomek
Sun, 21 Jan 2007 16:28
cache o co chodzi?
Author: tomek gomek
Date: Sun, 21 Jan 2007 16:28
Date: Sun, 21 Jan 2007 16:28
25 lines
1544 bytes
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 =-
Re: cache o co chodzi?
Author: tomek gomek
Date: Sun, 21 Jan 2007 16:42
Date: Sun, 21 Jan 2007 16:42
10 lines
1081 bytes
1081 bytes
Dnia Sun, 21 Jan 2007 17:28:37 +0100, tomek gomek napisał(a): Ok, już wiem :) Uruchamiałem środowisko test a tam e environment było ustawione cache na true :) -- -= pozdrawiam tomek =-
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads