Hello!
If using SSL and non-SSL versions of same page, htmlpurifier caches only one version, and SSL-version rewriting the images to http version and causes insecure content warnings. CDN module disables rewriting of SSL pages, but it still remains in cache.

Please help.

Comments

heddn’s picture

After a cursory look, I don't see any hooks in cdn that would allow htmlpurifier to do anything different for the CDN module on http/https. I'll leave this open for a while in hopes that someone else has some suggestions.

ArtActivator.com’s picture

Ok, can you please look here? https://drupal.org/node/2051971
I can't understand why it is happening. I looked and decided that only htmlpurifier can cache it, but maybe not.

ArtActivator.com’s picture

cdn uses hook_node_view_alter. This hook is with filters processed already, or before filters?

heddn’s picture

@ArtActivator.com, hook_node_view_alter runs after filters. So CDN will pull in already cached content. We could educate htmlpurifier about http vs https, but that could seriously fragment the cache and wouldn't be something that most users would want.

ArtActivator.com’s picture

Status: Active » Closed (works as designed)

Ok, thanks for help.
I can't understand, only I have that problem. And this is related only to blocks and nodes.
Ok, will try to debug more.

Thanks and good luck!