WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] fredericktownes, is this a trick you can utilize? (2 posts)

  1. whatsthatbug.com
    Member
    Posted 4 years ago #

    Or is there a better way that I should be doing this?

    I already serve all of the images for my site from a different server using rewrite in .htaccess.

    RewriteCond   %{REQUEST_URI}    (.*\.(jpg|gif|png|JPG|GIF))$
    RewriteCond   %{REQUEST_URI}    !.*wp-admin.*
    RewriteCond   %{REQUEST_URI}    !.*wp-includes.*
    RewriteCond   %{REQUEST_URI}    !.*phpmyadmin.*
    RewriteCond   %{REQUEST_URI}    !.*plugins.*
    RewriteRule   ^(.+)             http://images.whatsthatbug.com/$1 [R=permanent,L]

    I have rsync running with inotify so if a file gets changed it immediately gets pushed to images.whatsthatbug.com.

    I suppose I should be redirecting .css and .js there as well.

    Does this qualify as a CDN for functional purposes, as MacGayvered as it is?

  2. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    No, it does not. All you realized from this is improved progressive render via browser pipelining by adding an additional hostname.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic