Berkeley CSUA MOTD:Entry 15064
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

1998/12/3-4 [Computer/SW/WWW/Server, Computer/SW/Unix] UID:15064 Activity:moderate
12/3    According to "man www" if I want to have server side includes on
        my web page off of csua, I need to either change the file
        extension to .shtml or make it executable. Is there any reason why
        I shouldn't just change all my web page file permissions so I can
        avoid having everything end with .shtml?
        \_ for files identified as SSI-capable, the web server preprocesses
           them line by line for every page hit.  normal files are served
           up "straight" without this overhead.  --jwang
           \_ So we're talking about a difference of probably milliseconds
              per page load here?
              \_ I've done this on a Linux server. I found differences of
                 several seconds. I never did figure out why the huge
                 difference.
                \_ the only way there might be that much of a difference is
                   if your WWW server is CPU-bound (extremely unlikely) or
                   you're getting the documents off NFS or something.  It
                   should not be a noticable difference.  -tom
                   \_ But it is possible. It does depend on what is being
                      interpreted by the SSI. Use .shtml only if necessary.
                      \_ Are you implying it's better to make your file
                         executable then? Or in general, use SSI only if
                         necessary.
                         \_ the latter.  -tom