Jump to content

Cloudflare info/tutorial for IPB


Recommended Posts

On 22/11/2017 at 8:46 PM, jair101 said:

It is worth it only if you have an image heavy community. Then you can use Polish and Mirage, which help with image optimization. If you don't need that, I believe you are perfectly fine with the free plan. 

I do have an image heavy community. :( 
but I'm more concerned about the main page. So I guess I will have to evaluate the option of paying

Thank you

Link to comment
Share on other sites

On 11/24/2017 at 6:22 PM, jcdesign said:

I tried and bought the pro solution. My site contains almost only pictures and I could not notice any difference at all when I enabled Polish and with Lossy setting. Have tried GTmetrix since yesterday so this feels completely meaningless to pay for.

Try with Chrome, the webp conversion brings the most sizeable improvement imo. 

Link to comment
Share on other sites

  • 4 weeks later...
1 hour ago, autumnwalker said:

I'm struggling with how to optimize CloudFlare for IPB - I'm getting like 4% requests cached and about 10% bandwidth cached. That seems really low to me - is it?

Yeap, something is wrong. I am getting 2:1 cached:non-cached requeests and bandwidth and I feel it can be optimized more.

First check the TTL of the cache, I think there is a setting that cloudflare can manage it or it can be taken from your webserver settings. 

Link to comment
Share on other sites

3 minutes ago, jair101 said:

First check the TTL of the cache, I think there is a setting that cloudflare can manage it or it can be taken from your webserver settings. 

Was depending on CF to set the one month TTL, but implemented the following today:

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On

# CSS and JS expiration: 1 month after request
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"

# Image files expiration: 1 year after request
ExpiresByType image/bmp "access plus 1 year" 
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/jp2 "access plus 1 year"
ExpiresByType image/pipeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/tiff "access plus 1 year"
ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/ico "access plus 1 year"
ExpiresByType image/icon "access plus 1 year"
ExpiresByType text/ico "access plus 1 year"
ExpiresByType application/ico "access plus 1 year"
ExpiresByType image/vnd.wap.wbmp "access plus 1 year"
ExpiresByType application/vnd.wap.wbxml "access plus 1 year"

# Other optimizations
ExpiresByType application/x-gzip "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##

 

Link to comment
Share on other sites

3 hours ago, Nathan Explosion said:

HI, This will prevent the URL from being CACHED but doesn't provide exemption from the 100MB per single file rule. IE: downloads app will be limited in file size per submission to 100MB or less. Not great.

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Most of the times using friendly urls (will avoid the = ? and a few characters on the link that may false detected as sql injection attempts) will solve that issue but even if you must disable WAF you will be benefit from other optimizations that they offer and ofcourse from the huge global dns network that they use with 120+ datacenters around the globe :)

Not to mention also the dns changes that are almost instant !

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...