ericmckean / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

getting blank page when calling a minified URL in Safari only #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Minify version: 2.1.3
PHP version: 5.2.6

What steps will reproduce the problem?
1. Calling a minified URL in a page, ex: 
<link type="text/css" rel="stylesheet" href="min/b=css&f=styles.css" />

Expected output:
Page loading correctly with minified assets

Actual output:
Blank page, 9 times out of 10

Did any unit tests FAIL? (Please do not post the full list)
!WARN: environment : Local HTTP request failed. Testing cannot continue.

Things of interest:
• Loading a minified URL directly in Safari always works. Ex. : 
http://example.com/min/b=css&f=styles.css&debug=1
• Adding $min_serveOptions['maxAge'] = 0 in config.php solves the problem.
• It's working fine in Chrome.
• I'm using the default config.php
• That problem only occurs in my Mediatemple (gs) environment (I'm currently 
trying to reach 
them). It's working fine on my local MAMP environment but it's 48 hours since 
I'm trying to find out 
which PHP or Apache setting to change...

Thanks for your help!

Original issue reported on code.google.com by gregouni...@gmail.com on 16 May 2010 at 5:32

GoogleCodeExporter commented 9 years ago
Try the FirePHP error logging
http://code.google.com/p/minify/wiki/Debugging

Original comment by mrclay....@gmail.com on 17 May 2010 at 1:30

GoogleCodeExporter commented 9 years ago
Hi,

Thx for your reply.
My problem doesn't occur in Firefox therefore I'm not sure it will help. The 
only warning I get is when 
launching the builder, it's saying "Warning: It appears output is being 
automatically compressed, interfering 
with Minify's own compression. The option "zlib.output_compression" is disabled 
in your PHP configuration so 
this behavior is likely due to a server option." 

On the mean time, I got an answer from MT support. It seems to be a well-known 
Safari (not Webkit) bug 
since 4.0 regarding how it handles caching and output compression. Everything 
is explained here but that 
didn't help me very much.
https://bugs.webkit.org/show_bug.cgi?id=25786

But as I said, everything is working fine in Safari on my local MAMP. Any clue 
about which Apache or PHP 
setting could fix that?

Thanks!

Original comment by gregouni...@gmail.com on 17 May 2010 at 4:52

GoogleCodeExporter commented 9 years ago
If the compression is coming from Apache's DEFLATE filter, you could try 
this .htaccess from 2.1.4
http://code.google.com/p/minify/source/browse/branches/2.1.4/min/.htaccess

If it's caused by zlib.output_compression, you can try to turn that Off via 
.htaccess 
or in a php.ini in the "min" directory.

Original comment by mrclay....@gmail.com on 17 May 2010 at 5:26

GoogleCodeExporter commented 9 years ago
Thanks a million time!
zlib.output_compression was already turned off but adding "SetEnv no-gzip" did 
the trick!

Best,
G

Original comment by gregouni...@gmail.com on 17 May 2010 at 5:37

GoogleCodeExporter commented 9 years ago
Great. Fixed in R412

Original comment by mrclay....@gmail.com on 17 May 2010 at 11:21