Take the 2-minute tour ×

i am using GZIP for the compression and its working fine but the problem came when the URL's are dynamic (e.g Default/template_css.php?w=310&h=237&sw=200&ct=fpss-container2). I am using Php .


share|improve this question
Please elaborate "the problem" in more detail. What happens? What happens not? Try to elaborate in developer's perspective, not in enduser's perspective. –  BalusC May 8 '10 at 17:42
i tested the site on webpagetest.org and it shows that this type of URL(/template_css.php?w=310&h=237&sw=200&ct=fpss-container2) are not gzipped . Thanks –  webkul May 8 '10 at 17:49
How have you configured/used GZIP? A bit more detail please. "It doesn't work" gives nothing to work with. It would be nice if you post the minimum required PHP code to reproduce this problem so that we can in fact just copy'n'paste'n'run it to see the same problem (most of us would just read the code, but you get the point). –  BalusC May 8 '10 at 17:57

1 Answer 1

Only use gzip when there's this line in the http-header:

Content-Encoding: gzip
share|improve this answer
but how ? should i place this in .htaccess ? –  webkul May 8 '10 at 18:45
This isn't a valid answer. @vipinsahu: you need to elaborate more about the problem. –  BalusC May 8 '10 at 20:37
@BalusC: I know it's not a real answer to his question, but it's probably a solution to his problem :-) –  edwin May 8 '10 at 21:24
@vipinsahu: With http_get_request_headers() you can get the http-header. –  edwin May 8 '10 at 21:25

Your Answer


