Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Javascript/CSS on the fly

by cees (Curate)
on Dec 04, 2005 at 13:38 UTC ( #513949=note: print w/replies, xml ) Need Help??

in reply to Re: Javascript/CSS on the fly
in thread Javascript/CSS on the fly

Unfortunately, it is generally recommended that you do not compress js or css files, since there are browsers out there that do not support it properly (1). They support compressed text/html content, but sometimes mess up with any other text based content that is compressed.

But using mod_deflate (or mod_gzip for Apache 1.3) is definately something that most admins should be looking at.


Replies are listed 'Best First'.
Re^3: Javascript/CSS on the fly
by belg4mit (Prior) on Dec 05, 2005 at 22:12 UTC
    That's only an issue if it isn't inlined. And if it isn't inlined you can allow for caching better by providing some parameter in the URI to tie it to the page or set of pages it was generated for /applies to.

    In Bob We Trust, All Others Bring Data.

      I recently wrote a mod_perl output filter which sits inside Apache. It intercepts requests for .css files and then "compresses" them on the fly before sending. It's not gzip compression, what it does is strip whitespace, comments, newlines etc. Check it out here: Compressing CSS on the fly

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513949]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-01-24 09:42 GMT
Find Nodes?
    Voting Booth?