Re: [boost] New boost webpage

Rene Rivera <grafik.list_at_[hidden]> writes:
Sam Partington wrote:
You also need to add this to httpd.conf, otherwise IE will just keep on downloading images, over and over and over again, even when they've been loaded at page load time.
#this stops background-image flicker in IE BrowserMatch "MSIE" brokenvary=1 BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1 BrowserMatch "Opera" !brokenvary SetEnvIf brokenvary 1 force-no-vary ExpiresActive On ExpiresByType image/gif A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000
Unfortunately that level of server setup is beyond our control. We can only hope that SF has such configuration already present on their servers.
I see background image flickering is still a problem. I've discovered that you can put above lines to .htaccess file. Regards, Janusz

Janusz Piwowarski wrote:
Rene Rivera <grafik.list_at_[hidden]> writes:
Sam Partington wrote:
You also need to add this to httpd.conf, otherwise IE will just keep on downloading images, over and over and over again, even when they've been loaded at page load time.
#this stops background-image flicker in IE BrowserMatch "MSIE" brokenvary=1 BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1 BrowserMatch "Opera" !brokenvary SetEnvIf brokenvary 1 force-no-vary ExpiresActive On ExpiresByType image/gif A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000
Unfortunately that level of server setup is beyond our control. We can only hope that SF has such configuration already present on their servers.
I see background image flickering is still a problem. I've discovered that you can put above lines to .htaccess file.
Thanks... Tried it but unfortunately it seems the version of Apache that SF uses doesn't understand the Expires* directives. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org

Rene Rivera wrote:
Thanks... Tried it but unfortunately it seems the version of Apache that SF uses doesn't understand the Expires* directives.
It requires mod_expires enabled. But if SF supports PHP, you can use script below: <?php // open the file in a binary mode $fp = fopen($QUERY_STRING, "rb"); // send the right headers $ext = substring($QUERY_STRING, strrpos($QUERY_STRING, ".") + 1); if ($ext = "jpg") $ext = "jpeg"; header("Content-Type: image/" . $ext); header("Content-Length: " . filesize($QUERY_STRING)); header("Expires: " . date("r", time() + (30 * 24 * 60 * 60))); // dump the picture and stop the script fpassthru($fp); fclose($fp); exit; ?> and modify background images in CSS, e.g.: background: url(addexpires.php?menu_link_indicator.png) no-repeat left center; where addexpires.php is above script name. You can see it works at http://bielsko-biala.org/boost -- Regards, Janusz

Janusz Piwowarski wrote:
Rene Rivera wrote:
Thanks... Tried it but unfortunately it seems the version of Apache that SF uses doesn't understand the Expires* directives.
It requires mod_expires enabled.
Yes, and it's not loaded on the SF config.
But if SF supports PHP, you can use script below: [...] $fp = fopen($QUERY_STRING, "rb");
1. I can't in my conscience consider that a solution given the inherent insecurities of having a php script that allow access to *any* world readable file in the file system.
You can see it works at http://bielsko-biala.org/boost
2. It doesn't work for me with IE6. I still see the load flicker. At this point I just don't think it's worth it to obfuscate to accommodate such an inferior product as IE<=6 is. It's not worth anyones time to spend on it. I think that if IE users are sufficiently bothered by such things as flicker they should either upgrade to another browser, or wait until the IE7 upgrade is available. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
participants (2)
-
Janusz Piwowarski
-
Rene Rivera