Dreamweaver and GZIP files

Posted by Vian Esterhuizen on Stack Overflow See other posts from Stack Overflow or by Vian Esterhuizen
Published on 2010-03-25T21:02:33Z Indexed on 2010/03/25 21:13 UTC
Read the original article Hit count: 524

Filed under:
|
|

Hi,

I've recently tried to optimize my site for speed and brandwith. Amongst many other techniques, I've used GZIP on my .css and .js files.

Using PuTTY I compressed the files on my site and then used:

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{HTTP:Accept-encoding} gzip
 RewriteCond %{HTTP_USER_AGENT} !Konqueror
 RewriteCond %{REQUEST_FILENAME}.gz -f
 RewriteRule ^(.*)\.css$ $1.css.gz [QSA,L]
 RewriteRule ^(.*)\.js$ $1.js.gz [QSA,L]
 <FilesMatch \.css\.gz$>
  ForceType text/css
 </FilesMatch>
 <FilesMatch \.js\.gz$>
  ForceType text/javascript
 </FilesMatch>
</IfModule>
<IfModule mod_mime.c>
 AddEncoding gzip .gz
</IfModule>

in my .htaccess file so that they get served properly because all my links are without the ".gz".

My problem is, I cant work on the GZIP file in Dreamweaver. Is there a plugin or extension of somesort that allows Dreamweaver to temporarily uncompress thses files so it can read them?

Or is there a way that I can work on my local copies as regular files, and server side they automatically get compressed when they are uploaded.

Or is there a different code editor I should be using that would completely get around this?

Or a just a different technique to doing this?

I hope this question makes sense,

Thanks

© Stack Overflow or respective owner

Related posts about dreamweaver

Related posts about gzip