Welcome to WebmasterWorld Guest from 54.227.47.228

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)

Junior Member

10+ Year Member

joined:Feb 10, 2003
posts:161
votes: 0


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)

Full Member

10+ Year Member

joined:Feb 19, 2003
posts:227
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 26, 2003
posts:1133
votes: 0


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)

Junior Member

10+ Year Member

joined:Feb 10, 2003
posts:161
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members