This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Jet (Forum Locked Forum Locked)
 Helicon Tech : Helicon Jet
Subject Topic: Cache "User Login driven site" for guests (Topic Closed Topic Closed)
Author
Message |
canadaka
Groupie


Joined: 18 August 2004
Location: Canada
Posts: 90
Posted: 21 April 2007 at 4:27am  

Could there be any way to cache dynamic sites like a phpbb forum when a user is not logged in. So for guests the pages would be cached. But when someone logs in, the dynamic files are no longer cached.

This would be super awesome! Not sure how or if it can be done... It would really set Helicon apart from Port80.

For simple compression, the built-in IIS6 compression options through the metabase are good enough.
Back to Top Visit canadaka's Homepage
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 23 April 2007 at 7:10am  

This feature is planned. Unfortunately it is not as easy as you may think. Even in unlogged state most of the applications allow user to choose some settings, like alter ordering of messages, changing views. It is possible to chache such data only if all the parameters required to generate anonimous page are passed through the query string and no values are sroted in a session data.
BTW Helicon Jet still offer many advantages over built-in IIS6 compression, like more flexible configuration and more compatibility options. And with dynamic content of forums you can still use client-side caching options available form Helicon Jet.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 23 April 2007 at 12:54pm  

BTW, actually there is a way to do what you ask, but this will also require ISAPI_Rewrite to be involved in the process. If you can somehow separate guest requests from logged user requests using ISAPI_Rewrite, for example by presence of some parameter or cookie in request, then what you ask is possible. Using ISAPI_Rewrite you can write a rule to add Cache-Control: no-cache header to request if it comes from logged user. After that enable dynamic server-side caching for the forum and enable "Append query string to cache files" option, with all other recommendations.
It will only work if all required parameters are passed through the query string and there is no session identifier in query string.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
cabou
Newbie


Joined: 23 August 2007
Posts: 17
Posted: 23 October 2007 at 1:52am  

Yaroslav,

can you please send me some details on the way I can add Cache-Control: no-cache with isapi_rewrite

Thanks

Erez

 

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 23 October 2007 at 7:55am  

Adding request header with ISAPI_Rewrite is simple with RewriteHeader directive. The trick is to make a good test to find when it is needed to add this header. For example if there is some cookie in client request then add header. Or if client adds some query string parameter. ISAPI_Rewrite cannot simply check whether client is logged or not, there should be some way to test it.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
cabou
Newbie


Joined: 23 August 2007
Posts: 17
Posted: 23 October 2007 at 8:14am  

I  have not find how to check for cookies in isapi rewrite.

Can you please tell me what this rule must look like.

When cookie Authentification = Dnn than no-cache

Thansk

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 24 October 2007 at 7:19am  

Here is example for ISAPI_Rewrite 2.x

RewriteCond %HTTP_COOKIE .*Authentification=Dnn.*
RewriteHeader Cache-Control: .* no-cache [I]

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
cabou
Newbie


Joined: 23 August 2007
Posts: 17
Posted: 30 October 2007 at 8:15am  

Hi,

I have tried:

RewriteCond %HTTP_COOKIE .*Authentification=Dnn.*
RewriteHeader Cache-Control: .* no-cache

But it is not working, I m using isapi_Rewrite 3

Thanks

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 31 October 2007 at 7:03am  

With ISAPI_Rewrite 3 syntax should be:

RewriteCond %{HTTP_COOKIE} Authentification=Dnn[;$] [NC]
RewriteHeader Cache-Control: . no-cache

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum