Po dodaniu do pliki htacces formułki kompresującej pliki zauważyłem dziwne zachowanie. Po zalogowaniu przechodzę na jakąś podstronę swojej strony i widzę, że nie jestem zalogowany. Po jakims czasie wszystko jest ok. To samo po wylogowaniu, niby jestem wylogowany ale przejde na inna podstronę i widzę, że dalej jestem zalogowany. Co może być tego przyczyną? do htacces dodałem:
AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain text/javascript application/javascript application/x-javascript application/json
# BEGIN Expire headers
# Makes cached files stay cached for longer (304 Not modified) = fewer 200 responses.
# Aim for at least 1 month for images, ideally a year (not longer - that'll break RFC specs)
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
# END Expire headers
# BEGIN Cache-Control Headers
# Only using the private/public values here - not max-age (Expires headers cover the same thing, and are more widely supported)
Header set Cache-Control "public"
Header set Cache-Control "private"
Header set Cache-Control "private, must-revalidate"
# END Cache-Control Headers
# BEGIN Turn ETags Off
# Inherently misconfigured, especially for server clusters
Header unset ETag
FileETag None
# END Turn ETags Off
# BEGIN Remove Last-Modified Header
# We're using Expires header to check for freshness, so save bytes by not returning this header.
Header unset Last-Modified
# END Remove Last-Modified Header
dodam, że jak się wyloguje i klikne w logo przenosi mnie na stronę główną gdzie jestem dalej zalogowany... ale gdy odświeżę stronę wszystko jest ok.
Ten post edytował dominick 19.01.2015, 09:46:58