Title: [Plugin: W3 Total Cache] Apache as CDN
Last modified: August 19, 2016

---

# [Plugin: W3 Total Cache] Apache as CDN

 *  [leckley](https://wordpress.org/support/users/leckley/)
 * (@leckley)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/)
 * Hi Guys,
 * I have a series of questions here for using apache as a poor mans CDN solution:
 * 1) The new version of the plugin does not have a .htaccess for the apache CDN
   anymore, are we to still use one?
 * If so, where can I get a copy?
 * 2) The google page speed plugin is still complaining about setting a cookie for
   my CDN domain even though its a completely different domain.
 * Any idea what I am doing wrong? (www.gamerslifeline.com)
 * 3) The CDN module allows for multiple hostnames, is it better to use more or 
   less?
 * 4) Any other suggestions when using apache on the CDN to improve performance?
 * Thanks!!

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [TexInWien](https://wordpress.org/support/users/texinwien/)
 * (@texinwien)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655582)
 * I’m not sure on the W3 Total Cache – specific questions, but for the poor man’s
   CDN, you should point the root domain somewhere that’s not serving cookies.
 * Anyone who’s visited the top-level domain, assuming GoDaddy’s sending cookies
   out on it, will pass cookies with every resource that’s pulled from the domain
   and all of its subdomains (if my understanding of cookies is correct).
 * Clear your cookies and your cache, then run PageSpeed on your site again – I 
   believe you’ll see the cookies warning go away. I just tried it and there’s no
   cookies warning for me. Long term, you need to point the TLD at somewhere that’s
   not serving cookies.
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655624)
 * > 1) The new version of the plugin does not have a .htaccess for the apache CDN
   > anymore, are we to still use one?
   > If so, where can I get a copy?
 * A copy of what? Apache (the web server) is irrelevant in terms of what the you
   are trying to achieve. Simply select that method and configure the browser cache
   settings you need (like compression) and the .htaccess file will be uploaded 
   for you.
 * > 2) The google page speed plugin is still complaining about setting a cookie
   > for my CDN domain even though its a completely different domain.
   > Any idea what I am doing wrong? (www.gamerslifeline.com)
 * You need to find the code setting those cookies and make sure they are limited
   to [http://www.gamerslifeline.com](http://www.gamerslifeline.com).
 * > 3) The CDN module allows for multiple hostnames, is it better to use more or
   > less?
 * There can be diminishing returns, just test your site for yourself, there is 
   no rule of thumb.
 * > 4) Any other suggestions when using apache on the CDN to improve performance?
 * No.
 *  Thread Starter [leckley](https://wordpress.org/support/users/leckley/)
 * (@leckley)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655736)
 * Hi Frederick,
 * In regards to question #1, I am sorry if I was unclear, but in the earlier versions
   of the plugin there was an additional .htaccess file provided that was to be 
   used on the CDN.
 * When I speak of the CDN, I am setting up a whole new hosting account using apache
   as the web server engine.
 * With the new version of the plugin I am not seeing a new .htaccess file to use
   on the CDN specifically and there isn’t one being uploaded to it at anytime.
 * Thanks!
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655737)
 * > In regards to question #1, I am sorry if I was unclear, but in the earlier 
   > versions of the plugin there was an additional .htaccess file provided that
   > was to be used on the CDN.
 * That is handled automatically now.
 * > When I speak of the CDN, I am setting up a whole new hosting account using 
   > apache as the web server engine.
 * You don’t need a new account, just a subdomain.
 *  Thread Starter [leckley](https://wordpress.org/support/users/leckley/)
 * (@leckley)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655738)
 * What do you mean by automatically?
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655740)
 * Meaning you have to take no action.
 *  Thread Starter [leckley](https://wordpress.org/support/users/leckley/)
 * (@leckley)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655741)
 * Hi,
 * Right now I am using the old .htaccess from the older version, without it using
   Google Speed test it fails some of the compression tests.
 * Also, I am showing that the javascript is not being compressed either.
 * Is there something additional that needs done?
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655746)
 * Stop using the old file and modify browser cache settings and re-save. Check 
   your unsuccessful transfers and make sure that it is empty, if it is not, re-
   export files to try to recreate the automatically created .htacess file.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘[Plugin: W3 Total Cache] Apache as CDN’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-apache-as-cdn/#post-1655746)
 * Status: not resolved