On 19/03/2021 03:34, Tom Brennan wrote:
Since some folks here seem to like the current CBT format, maybe I'm doing something wrong and you
can correct me. Here's an example:
...
Oops, back to the subject: Now I have a zip file. I can click on that and an XMI file appears.
But xmit manager (associated with *.XMI on my Win 10 box) doesn't seem to work with the temp file
zip creates. So I need to really extract the XMI first, then click to start xmit manager. Now I
have to find the doc member, which can vary. This time it's $DOC and I can click that in xmit
manager and read about the program.
Well, I wonder why I didn't tell the following trick earlier:
If the only reason for a zip or gzip a single file is to save bandwidth, then there is not need.
Compression can be addeded at least for apache to do this.
And no, I am not talking about compressing each time on the fly but to put *.xyz side by side with
*.xyz.gz and/or *.xyz.zip
and then use apache rewrite rules to deliver the compressed content instead of
*.xyz.
I started using this in various ways almost 10 years depending on the hierarchy of the web server to
rende html, , css, js.
The effect on the no so smart phones at that time were obvious.
But as a side effect: For *.xmi files one can use a special mime type that
lauches an xmit manager etc.
Peter
No guaranty is made about the following;
<files *.html.gz>
AddType "text/html" .gz
AddEncoding gzip .gz
</files>
<files *.txt.gz>
AddType "text/plain" .gz
AddEncoding gzip .gz
</files>
<files *.css.gz>
AddType "text/css" .gz
AddEncoding gzip .gz
</files>
RewriteEngine on
#Check to see if browser can accept gzip files.
ReWriteCond %{HTTP:accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
#make sure there's no trailing .gz on the url
ReWriteCond %{REQUEST_FILENAME} !^.+\.gz$
#check to see if a .gz version of the file exists.
RewriteCond %{REQUEST_FILENAME}.gz -f
#All conditions met so add .gz to URL filename (invisibly)
RewriteRule ^(.+) $1.gz [QSA,L]
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN