Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question how to gzip one or more page

    like:http://extjs.com/deploy/dev/examples...ewer/view.html

    it uses ext , as we know ext-all.js is so big nearly 500k . but when I watch in firebug it is only 125k , I know it is gziped server side , but when I watch the soruce code , there is nothing special , just

    Code:
    <script src="ext-all.js"></script>
    as I know , if we want to gzip some file , it should be
    Code:
    <script src="ext-all.php"></script>
    and in ext-all.php , we deal with ext-all.js.

    so I confused how to do it.

    I wonder if I expresses clearly , because my English is not so good.
    is life always so hard or when you are a child
    sorry for my poor English!

  • #2
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Compressing data is something the server does, and then lets the client know that what it is about to receive is compressed.

    They could have set up *.js to be parsed by PHP, or they have an automatic compressing filter (say a plugin for Apache) set up in the server that does it to everything.

    It's not just limited to PHP.

  • #3
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks aedrin , I got the answer!

    use .htaccess is a nice way.
    is life always so hard or when you are a child
    sorry for my poor English!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •