Charset in header for Drupal 6 Boost + Nginx (perusio config)

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by chadcrew on April 4, 2012 at 1:40pm

Hi,

Using perusio's config on a Drupal 6 (pressflow 6) site with Boost and nginx, it looks like the boost cached pages don't have a charset specified. Google's pagespeed extension reports:

"The following resources have no character set specified in their HTTP headers. Specifying a character set in HTTP headers can speed up browser rendering."

Should this be added to the nginx config somewhere?

Thanks,
Chad

Comments

Yes

Posted by omega8cc on April 4, 2012 at 4:01pm

There should be a line added in the Boost cache location, like in this example: https://github.com/omega8cc/nginx-for-drupal/blob/master/aegir/conf/ngin...

charset utf-8;

It's fixed now

Posted by perusio on April 4, 2012 at 4:16pm

not sure if it isn't Boost fault.
Here and here.

Thanks

Boost sets this in its .htaccess file

Posted by omega8cc on April 4, 2012 at 9:28pm

So it must be done also on the Nginx config level.

That "charset utf-8;"

Posted by chadcrew on April 4, 2012 at 9:34pm

That "charset utf-8;" addition fixed it for me. Thanks!

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /