| Author |
|
canadaka Groupie

Joined: 18 August 2004 Location: Canada
Online Status: Offline Posts: 59
|
| Posted: 21 April 2007 at 4:27am | IP Logged
|
|
|
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 |
|
| |
Yaroslav Moderator Group

Joined: 15 August 2002
Online Status: Offline Posts: 6445
|
| Posted: 23 April 2007 at 7:10am | IP Logged
|
|
|
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 |
|
| |
Yaroslav Moderator Group

Joined: 15 August 2002
Online Status: Offline Posts: 6445
|
| Posted: 23 April 2007 at 12:54pm | IP Logged
|
|
|
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 |
|
| |
cabou Newbie

Joined: 23 August 2007
Online Status: Offline Posts: 17
|
| Posted: 23 October 2007 at 1:52am | IP Logged
|
|
|
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 Moderator Group

Joined: 15 August 2002
Online Status: Offline Posts: 6445
|
| Posted: 23 October 2007 at 7:55am | IP Logged
|
|
|
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 |
|
| |
cabou Newbie

Joined: 23 August 2007
Online Status: Offline Posts: 17
|
| Posted: 23 October 2007 at 8:14am | IP Logged
|
|
|
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 Moderator Group

Joined: 15 August 2002
Online Status: Offline Posts: 6445
|
| Posted: 24 October 2007 at 7:19am | IP Logged
|
|
|
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 |
|
| |
cabou Newbie

Joined: 23 August 2007
Online Status: Offline Posts: 17
|
| Posted: 30 October 2007 at 8:15am | IP Logged
|
|
|
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 Moderator Group

Joined: 15 August 2002
Online Status: Offline Posts: 6445
|
| Posted: 31 October 2007 at 7:03am | IP Logged
|
|
|
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 |
|
| |