Welcome to WebmasterWorld Guest from 54.159.246.164

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Sessions and caching

What type of caching?

   
3:22 pm on Aug 12, 2005 (gmt 0)

10+ Year Member



Hi all,

I'm trying to work with sessions for a moment and noticed that session's usage triggers cache control method and pragma switching to no-cache.
I've read that session.cache_limiter parameter can be used to specify the type of caching (none/nocache/private/private_no_expire/public).

Is no-cache method really needed by session mechanism?
If no, what caching type is better for SE?

Thanks in advance.

4:04 pm on Aug 12, 2005 (gmt 0)

10+ Year Member



I think the problems can start when the users starts hitting the back button. For example if a user makes changes to a database and on the next page hits back, if the browser is told to hold a cache, it will show the cache once the back button is hit.... you see the problem...
4:22 pm on Aug 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To say the truth - the caching method depends only on you.
If you use the session only to get info about user (how many pages visited, etc) then you can cache everything
If you have some private page - don't cache it
If the page is randomly generated (eg game) don't cache it

So really the caching depends only on the usage.
Hope this cleares things a bit
Best regards
Michal Cibor

6:34 pm on Aug 12, 2005 (gmt 0)

10+ Year Member



Thanks a lot for your answers.
My pages have randomly generated elements, so, i believe it's better to leave it as no-cache.