I’m not certain character encoding is the correct term, but something is happening to sp scripts when we attempt to serve them up via CDN.
We are desperately trying to get the Hummingbird site optimization plugin working with Simplepress. It handles caching, gzip, and asset optimization among other things. I’ve got it working well for all our CSS files, and most scripts on our site, but we encounter an issue with SimplePress scripts when activating its CDN function.
I have a lengthy support topic going on with the Hummingbird devs, but while I await further answers I wanted to share this here to see if the @spsupport experts have any insight.
Please compare the two screenshots, viewing the source of sp-forum.min.js. This is just one example, of what I think is causing all forum functions to fail with the CDN active.
One shows the clean script code hosted on our server, viewed via cPanel. The second shows the same file hosted on the CDN. Notice the odd characters.
I have combining and caching turned off in Simplepress for js and css, as this has been working well to let Hummingbird do that. No problems with CSS files!
I have also cleared all SP cache (css, script, xml, and general). This issue only presents itself when turning on the CDN, without any further combining or minification of individual files.
I say “character encoding” because we also get this warning in the browser:
The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.
Even though, we do have the charset=”UTF-8″ meta tag in our site header. I read this warning can come from specific files (e.g.; scripts) and not necessarily the HTML.
Thanks in advance for any possible feedback.
File on Host Server
File on CDN
Script Failure Warnings
Character Encoding Warning







