Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN issue with HTML Compressor #462

Closed
isaumya opened this issue Apr 6, 2015 · 7 comments
Closed

CDN issue with HTML Compressor #462

isaumya opened this issue Apr 6, 2015 · 7 comments

Comments

@isaumya
Copy link

isaumya commented Apr 6, 2015

I've start testing the Zencache Pro and find a wired issue with CDN and HTML Compressor. When both cdn and html compressor is enabled, the html compressor seems working fine, but all static file is using the site url not the cdn url.

Testing Infrastructure:
The testing has been done over a nginx server with single installation of wordpress (not multisite).

Process to replicate the issue:

  1. Enable zencache pro (zencache light or quick cache was never installed on this site before)
  2. Enable HTML compressor with all the default settings
  3. Enable static cdn (used maxcdn)
  4. Set yes to server static resource over https using cdn (as my testing site was on ssl)
  5. Save and check the site on incognito window. Check the source code of the site.

Please let me know if you need any more informations about this issue.

@raamdev
Copy link
Contributor

raamdev commented Apr 6, 2015

@isaumya This feature is coming in the next release of ZenCache (currently in beta):

  • Enhancement (Pro): Static CDN Filters now apply to minified and compressed CSS/JS files generated by the HTML Compressor; these files will now be cached by your CDN. Props @jaswsinc. Issue #429

You can see the full changelog for the next release here. The next release has been in the beta phase since April 4th and we'll be doing a public release within the next day or so.

@isaumya
Copy link
Author

isaumya commented Apr 6, 2015

Thank you for conforming. I'm really sorry for the duplicate I didn't see that before posting.

@isaumya
Copy link
Author

isaumya commented Apr 10, 2015

Hi @raamdev I got your email and start testing zencache pro on my own website. It seems this issue is still retain there. You can check the source code of my site. Its not taking the cdn url. It would be great if you take a deep look into it.

@raamdev
Copy link
Contributor

raamdev commented Apr 10, 2015

@isaumya I'm not seeing any problem. I'm running the latest version of ZenCache Pro (v150409) on my personal site, http://raam.org, along with Static CDN Filters and the HTML Compression and you can see in the screenshot below (or by looking at the source when you visit my site) that HTML Compressor minified/compressed files are being served by the CDN:

2015-04-10_09-28-20

@isaumya
Copy link
Author

isaumya commented Apr 10, 2015

Yes. I think this is some issue with WP Multisite. I've seen few more wired thing. You see if you visit my other site (i.e. photography.isaumya.com) and see the source code, you will see that Zencache don't even running there in that subsite. But I've network activated it. Is you personal site is also running on WP Multisite or normal WP Installation?

I think this cdn feature with html compressor will only work with normal wp install and not multisite. I will suggest you to test it on a multisite network (if possible subdomain based) and check if the cdn is still working with HTML Compressor.

@raamdev
Copy link
Contributor

raamdev commented Apr 10, 2015

I think this cdn feature with html compressor will only work with normal wp install and not multisite.

Yes, that is correct. This is a known current limitation of the Static CDN Filters (I mentioned this before) and we're currently working to support Static CDN Filters for sub-domains on WordPress Multisite. See #439

@isaumya
Copy link
Author

isaumya commented Apr 10, 2015

Hmm. I seems I have to wait more. Anyways. As per my current testing, the way your plugin is performing (even without the cdn) is really amazing. Well coded. I'm seriously looking forward to the cdn support.
Anyways very soon, I'm going move to a new server which has a dedicated radis cache system built in. (Know more: https://wphostingspot.com/) Then I'm gonna test how better it performs compared to the dedicated radis cache server.
BTW, Here is my current page load time, after proper configuration of zencache pro: http://tools.pingdom.com/fpt/#!/cUBqwN/https://www.isaumya.com

P.S: Please do a little hurry on the static cdn support on sub domain based multi sites. Otherwise my site gonna run without cdn and make it slow to the people who live in a distant place from my server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants