<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 23, 2014 at 11:21 AM, Bob Arning <span dir="ltr"><<a href="mailto:arning315@comcast.net" target="_blank" class="vt-p">arning315@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<font face="Georgia">is it perhaps related to this?<br>
<br></font></div></blockquote><div><br></div><div>Hi Bob,</div><div><br></div><div>Thanks for the suggestion. I tried that but same problem :(</div><div><br></div><div>Thanks anyway!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><font face="Georgia">
</font><br>
<div>On 12/2/13 8:47 AM, Bob Arning wrote:<br>
</div>
<blockquote type="cite"> <font face="Georgia">I did a little poking around with WACounter
(early seaside version 3) and..<br>
<br>
When hitting the back button(Chrome), the screen updates
correctly, but does not re-render, suggesting caching. So I
requested no-caching:<br>
<br>
renderContentOn: html<br>
<br>
<b>self requestContext response doNotCache.</b><b><br>
</b><b> html heading: Time now asString.</b><br>
html heading: count.<br>
html anchor<br>
callback: [ self increase ];<br>
with: '++'.<br>
html space.<br>
html anchor<br>
callback: [ self decrease ];<br>
with: '--'.<br>
<br>
And still no re-render. Google found this:<br>
<br>
<a href="http://blog.55minutes.com/2011/10/how-to-defeat-the-browser-back-button-cache/" target="_blank" class="vt-p">http://blog.55minutes.com/2011/10/how-to-defeat-the-browser-back-button-cache/</a><br>
<br>
Changing:<br>
<br>
WAResponse>>doNotCache<br>
"Configure the receiver to not be cached at all."<br>
<br>
self headerAt: 'Pragma' put: 'no-cache'. "Proxies"<br>
self headerAt: 'Expires' putDate: self doNotCacheExpiryDate.
"HTTP 1.0"<br>
self headerAt: <b>'Cache-Control' put: 'no-cache,
max-age=0, must-revalidate, no-store'</b>. "HTTP 1.1"<br>
<br>
and now it re-renders on a back button. HTH<br>
</font></blockquote><div><div class="h5">
<br>
<div>On 1/23/14 9:08 AM, Mariano Martinez
Peck wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Ohhh boy.... the back button doesn't work ONLY in
Chrome.... Safari and Firefox works ok, even with nginx.
<div>So.....it only fails with nginx AND chrome...all the rest
of the combinations work....</div>
<div><br>
</div>
<div>It seems it could to be related to redirects... google
tells me I am not the only one where the back button refresh
the current page instead....</div>
<div><br>
</div>
<div>I could still not make it work. If you have any idea, I
would appreciate it!</div>
<div><br>
</div>
<div>Thanks, <br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Jan 22, 2014 at 11:41 PM,
Dale Henrichs <span dir="ltr"><<a href="mailto:dale.henrichs@gemtalksystems.com" target="_blank" class="vt-p">dale.henrichs@gemtalksystems.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I've never really done any work with
nginx ... the only thing that looks suspicious to me
is the `<span style="font-family:arial,sans-serif;font-size:12.800000190734863px">include
fastcgi_params` statement ... </span>
<div>
<span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">I
assume that you've bounced nginx and made sure
that the nginx you think you are hitting is the
one that you are changing? </span>
<div>
<span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br>
</span></div>
<div>I know this is rudimentary, but when the
impossible is happening you have to eliminate the
improbable:) or something like that:)</div>
<span><font color="#888888">
</font></span></div>
<span><font color="#888888">
<div><br>
</div>
<div>Dale</div>
</font></span></div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Jan 22, 2014 at
6:25 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank" class="vt-p">marianopeck@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>On Wed, Jan 22, 2014 at 10:44 PM,
Dale Henrichs <span dir="ltr"><<a href="mailto:dale.henrichs@gemtalksystems.com" target="_blank" class="vt-p">dale.henrichs@gemtalksystems.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Mariano,
<div><br>
</div>
<div>It seems that if swazoo is
working fine that the nginx
setup would be suspect ... </div>
<div><br>
</div>
</div>
</blockquote>
<div><br>
</div>
</div>
<div>Yes, I think the same. But I am
completely clueless of what can be...</div>
<div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div>Could you should share your
simple nginx script in case
there's something there? </div>
<div><br>
</div>
</div>
</blockquote>
<div><br>
</div>
</div>
<div>Sure, this is the conf...It cannot
be simpler:</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div> upstream seaside </div>
<div> {</div>
<div> server localhost:9001;</div>
<div> }</div>
<div><span style="white-space:pre-wrap"> </span>
</div>
<div> upstream research </div>
<div> {</div>
<div> server localhost:9005;</div>
<div> }</div>
<div><span style="white-space:pre-wrap"> </span>
</div>
<div><span style="white-space:pre-wrap"> </span>
</div>
<div> </div>
<div> server</div>
<div> {</div>
<div><span style="white-space:pre-wrap"> </span></div>
<div><span style="white-space:pre-wrap"> </span>server_name
localhost;</div>
<div><span style="white-space:pre-wrap"> </span> </div>
<div> root /var/www/glass/;</div>
<div><span style="white-space:pre-wrap"> </span></div>
<div><span style="white-space:pre-wrap"> </span>
listen 443;</div>
<div><span style="white-space:pre-wrap"> </span>
ssl on;</div>
<div><span style="white-space:pre-wrap"> </span>
ssl_certificate
/usr/local/conf/newcert.pem;</div>
<div><span style="white-space:pre-wrap"> </span>
ssl_certificate_key
/usr/local/conf/privkey.pem;</div>
<div><span style="white-space:pre-wrap"> </span></div>
<div><br>
</div>
<div> location / { </div>
<div><span style="white-space:pre-wrap"> </span></div>
<div><span style="white-space:pre-wrap"> </span>try_files
$uri @seaside;</div>
<div><br>
</div>
<div> }</div>
<div> </div>
<div> location @seaside {</div>
<div><span style="white-space:pre-wrap"> </span></div>
<div> include fastcgi_params;</div>
<div> fastcgi_pass seaside;</div>
<div><span style="white-space:pre-wrap"> </span>
</div>
<div> </div>
<div> }</div>
<div><span style="white-space:pre-wrap"> </span></div>
<div> </div>
<div><span style="white-space:pre-wrap"> </span></div>
<div> }</div>
<div> </div>
<div><span style="white-space:pre-wrap"> </span></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks Dale, </div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
<div>
<div dir="ltr">
<div>Dale</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div>On Wed, Jan 22, 2014 at
4:33 PM, Mariano Martinez
Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank" class="vt-p">marianopeck@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
<div>
<div dir="ltr">mmmmm
weird... I tried with
one single gem (just
in case) and with no
rewrite....a nginx
conf as simple as
possible.... nothing
strange, and still
same problem.
<div>
<br>
</div>
<div>Any ideas what
could be wrong?
swazoo server works
fine... is there
anything known I
should do to manage
back button when
using an external
web server?</div>
<div><br>
</div>
<div>Thanks, </div>
</div>
<div class="gmail_extra">
<div>
<div><br>
<br>
<div class="gmail_quote">On
Wed, Jan 22,
2014 at 4:04 PM,
Mariano Martinez
Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com" target="_blank" class="vt-p">marianopeck@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Hi
guys,
<div><br>
</div>
<div>I have a
seaside
website in
which I do
some rewrites.
If I use a
swazoo server,
the back
button works
as expected.
However, when
I deploy it
using nginx +
rewrites it
doesn't work
anymore. I do
have a
#updateUrl: in
my main
component and
I can see the
URL in the
browser to be
updated. I
also see that
the request is
being
processed.
However, the
page renders
again the same
page...so it
does not goes
back. _k does
change as well
in the browser
URL.</div>
<div><br>
</div>
<div>My setup
is with
gemstone,
nginx and
fastcgi. (I
cc'ed gemstone
in case this
is the
problem.....)</div>
<div><br>
</div>
<div>Any help
would be
appreciated.</div>
<div><br>
</div>
<div>I paste
the
configuration
I am using in
case someone
can help me.</div>
<div><br>
</div>
<div>The
important part
of nginx is
this:</div>
<div>
<div><br>
</div>
<div>location
~*
/clientXXX/appYYY
{</div>
<div><span style="white-space:pre-wrap">
</span>rewrite
^/clientXXX/(.*)$
/$1 break;</div>
<div>
<span style="white-space:pre-wrap">
</span>try_files
$uri
@seasideclientXXX;</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div>location
@seasideclientXXX
{</div>
<div><span style="white-space:pre-wrap">
</span>include
fastcgi_params;</div>
<div><span style="white-space:pre-wrap">
</span>fastcgi_param
REQUEST_URI
$uri?$args; </div>
<div> <span style="white-space:pre-wrap"> </span>fastcgi_pass seasideclientXXX;</div>
<div> <span style="white-space:pre-wrap">
</span>fastcgi_next_upstream
error
invalid_header
timeout
http_500;</div>
<div>} </div>
<div><br>
</div>
<div><br>
</div>
<div>My app is
registered as
'appYYY' and I
execute this
in the image:</div>
</div>
<div><br>
</div>
<div>
<div>|
application | </div>
<div>application
:=
WADispatcher
default
handlerAt:
'dp'.</div>
<div>application
<span style="white-space:pre-wrap">
</span></div>
<div><span style="white-space:pre-wrap">
</span>preferenceAt:
#serverProtocol
put: 'https';
<span style="white-space:pre-wrap">
</span></div>
<div><span style="white-space:pre-wrap">
</span>preferenceAt:
#serverHostname
put:
'localhost';<span style="white-space:pre-wrap"> </span></div>
<div><span style="white-space:pre-wrap">
</span>preferenceAt:
#serverPort
put: 443; <span style="white-space:pre-wrap"> </span></div>
<div><span style="white-space:pre-wrap">
</span>preferenceAt:
#serverPath
put:
'/clientXXX/appYYY'.</div>
<div><span style="white-space:pre-wrap">
</span></div>
</div>
<div><br>
</div>
<div>Thanks in
advance, <span><font color="#888888"><br clear="all">
<div><br>
</div>
-- <br>
Mariano<br>
<a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</font></span></div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span><font color="#888888">--
<br>
Mariano<br>
<a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</font></span></div>
<br>
</div>
</div>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Glass mailing list<br>
<a href="mailto:Glass@lists.gemtalksystems.com" target="_blank" class="vt-p">Glass@lists.gemtalksystems.com</a><br>
<a href="http://lists.gemtalksystems.com/mailman/listinfo/glass" target="_blank" class="vt-p">http://lists.gemtalksystems.com/mailman/listinfo/glass</a><br>
<br>
</blockquote>
</div>
<span><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
Mariano<br>
<a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</font></span></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Mariano<br>
<a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
seaside mailing list
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank" class="vt-p">seaside@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>