tml schrieb: > I dont see this problem on my local dev machine, but when I'm running > on my server, if i login, the next page whcih comes up still thinks > I'm not logged in. [...] > > Anyone know how to fix this issue?
(I cannot reproduce this, but anyway.) Try sending this header:
Expires: 0 [see 1]
With CherryPy, that is: cherrypy.response.headers['Expires'] = 0
> Also, I use a bunch of widgets, like submodal, mochikit, etc. and this
> causes 5-6 file loads like css, js, html pages associated with each
> page. This is giving the perception of a "slowdown" on my browser side
> as the request hits my server and it replies with 200 OK. How can I
> optimize this performance?
It should response with something in 300. At least TG/CP does this if I
access directly the app.
I am not sure whether it works "before" a mod_rewrite, but give these
Apache directives a try:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 3 month"
ExpiresByType text/javascript "access plus 3 month"
ExpiresByType image/gif "access plus 3 month"
ExpiresByType image/jpeg "access plus 3 month"
ExpiresByType image/png "access plus 3 month"
</IfModule>
<IfModule mod_headers.c>
<Files ~ "\.(js|css|gif|jpe?g|png)$">
Header append Cache-Control "public"
</Files>
</IfModule>
<FilesMatch "\.(htm|js|css|txt|vbs|patch|scm|sh|pl)$">
SetOutputFilter DEFLATE
</FilesMatch>
Well, you don't really need the latter, but I found it very handy for
500 kb+ files like the one you can find in TGYUI or TGExtJS.
-- Mark
[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21
smime.p7s
Description: S/MIME Cryptographic Signature

