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:
  1. AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain text/javascript application/javascript application/x-javascript application/json
  2. # BEGIN Expire headers
  3. # Makes cached files stay cached for longer (304 Not modified) = fewer 200 responses.
  4. # Aim for at least 1 month for images, ideally a year (not longer - that'll break RFC specs)
  5.  
  6. ExpiresActive On
  7. ExpiresDefault "access plus 1 month"
  8. ExpiresByType image/x-icon "access plus 1 year"
  9. ExpiresByType image/jpeg "access plus 1 year"
  10. ExpiresByType image/png "access plus 1 year"
  11. ExpiresByType image/gif "access plus 1 year"
  12. ExpiresByType application/x-shockwave-flash "access plus 1 year"
  13. ExpiresByType text/css "access plus 604800 seconds"
  14. ExpiresByType text/javascript "access plus 1 month"
  15. ExpiresByType application/x-javascript "access plus 1 month"
  16. ExpiresByType text/html "access plus 600 seconds"
  17. ExpiresByType application/xhtml+xml "access plus 600 seconds"
  18.  
  19. # END Expire headers
  20.  
  21. # BEGIN Cache-Control Headers
  22. # Only using the private/public values here - not max-age (Expires headers cover the same thing, and are more widely supported)
  23.  
  24. Header set Cache-Control "public"
  25. Header set Cache-Control "private"
  26. Header set Cache-Control "private, must-revalidate"
  27.  
  28. # END Cache-Control Headers
  29.  
  30. # BEGIN Turn ETags Off
  31. # Inherently misconfigured, especially for server clusters
  32.  
  33. Header unset ETag
  34. FileETag None
  35.  
  36. # END Turn ETags Off
  37.  
  38. # BEGIN Remove Last-Modified Header
  39. # We're using Expires header to check for freshness, so save bytes by not returning this header.
  40.  
  41. Header unset Last-Modified
  42.  
  43. # 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.