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.
chadcrew's picture

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

omega8cc's picture

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

perusio's picture

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

Thanks

Boost sets this in its .htaccess file

omega8cc's picture

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

That "charset utf-8;"

chadcrew's picture

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: