Forum Moderators: phranque

Message Too Old, No Replies

SSI on .htm pages not working correctly

         

billg51

11:28 pm on Apr 19, 2003 (gmt 0)

10+ Year Member



I am trying to get ssi to work on a .htm page. It works, but not correctly. Very strangely, it parses out the ssi and displays the html....BUT it shows past html and doesn't update to the latest changes.

Basically, I am pulling a file called compact.ssi. This file is updated all the time. What shows in the .htm files was what was in the ssi file when the .htm file I am putting the compact.ssi call in. It never pulls in the latest changes to the ssi file...just seems to show a cache. If I reupload the .htm file, it shows the newest changes, but again never updates after that.

I have tried a .shtml extension, and this works correctly and always updates.

Below is my .htaccess file. If this means anything, I am on a RAQ4i server.

Options +Includes
AddType text/x-server-parsed-html .htm
XBitHack Full

Thanks for any help.

jdMorgan

11:39 pm on Apr 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



billg51,

I suspect the problem is with XBitHack Full. Using Full causes the server to take the date of the parent htm(l) file as the Last-Modified date. Try XBitHack On instead. If that does not work, then you will have to manually set up the headers to return the last-modified date of the ssi file, or to set the expiry date in the past, so that the htm(l) page cannot be cached.

HTH,
Jim

billg51

11:43 pm on Apr 19, 2003 (gmt 0)

10+ Year Member



Hi Jim,

Thanks...I will try that.

Another question though...what is the difference between Full and On? I have read most places say use Full.

Thanks.

jdMorgan

12:19 am on Apr 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



billg51,

Others say this and that, but I go by the mod_include documentation [httpd.apache.org]. :) Not sure about RAQ, though.

Jim