Jump to content
You are viewing a curated collection of the most significant posts in this topic with an estimated read time of 1 minute. The full topic contains 215 posts with an estimated read time of 159 minutes.

Featured Replies

Posted
 

Regarding caching, just what I mentioned here:

For cloudflare in general do you change anything else, I'm looking at auto minify in speed settings and wondering if that should be enabled?

  • Replies 214
  • Views 13.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Randy Calvert
    Randy Calvert

    You can test it pretty easily by changing Cloudflare's status to OFF.  In the DNS settings, change the orange cloud to grey.   However instead of just saying "pretty sure", I would recommend usin

  • The Old Man
    The Old Man

    No worries, I think to be honest, I'd rather see a proper dedicated section added to the support docs, as opposed to having to find a post or two with the relevant settings to use, no offence to I thi

  • Anytime you test as a guest, I would recommend opening up an incognito/private browser session or using a browser on your computer specifically for that. There will always be related data in your brow

Posted Images

  • Community Expert

CloudFlare is such a wide topic, I moved this to our Community Support forum where you can ask questions to other administrators who may be using it.

CSS and Javascript are already minified by our software so you do not need to do that.

  • Author

Should ‘Always use https’ be on in the edge settings?

  • Community Expert

No, as long as you have your conf_global.php set to HTTPS, this is not needed. (It should not hurt, but no help really.)  I would enable HSTS though so the browser itself rewrites any non-secure request to HTTPS before it gets to CF. 

  • 3 weeks later...

No worries, I think to be honest, I'd rather see a proper dedicated section added to the support docs, as opposed to having to find a post or two with the relevant settings to use, no offence to I think it was Jim who shared his methodology.

Just thinking aloud...

I think adding support for the Cloudflare API perhaps as a Community Enhancement could be useful ...

  • for providing a way to only clear html pages and not all content including images, videos, the kitchen sink etc, plus...
  • for fine grain control when specific content has been updated like a new post, topic or article.
  • It would be nice to be able to see some stats in the AdminCP Dashboard
  • the ability to add a list of pages to never cache, one per line, supporting wildcards (3rd party plugins could hook into or extend)
  • and to be able to have a 'preload' option to effectively prime the cache after clearing, say for all main index pages and maybe top 20 content items, or maybe use the sitemap to help prime the cache.
  • To add blocklist IP addresses, bots etc.

I like idea of CF Workers being there as a backup, also should headers do get mangled by Apache, a plugin inadvertently sends whitespace in the header or CF decides to do its own thing and cache stuff it shouldn't. Edge cases I know.

  • Author
 

No, as in caching the whole page. You would want to review any headers your server is passing and ensure you are not overriding the headers set by Invision Community. Often people set cache headers in the .htaccess so you will want to review yours. You also want to ensure that you have configured caching per the instructions I provided so that these items are cached correctly.

It's set up as you suggested I'm sure. I've got nothing in htaccess cache wise.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^ads.txt$ ads_txt.php [L]
</IfModule>

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map|webp)(\?|$) /404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

My cache rules


Could contain: File, Text, Page

Could contain: Page, Text, Computer Hardware, Hardware, Electronics

Could contain: Page, Text, File, Pc, Electronics, Computer

Could contain: Page, Text, File

Edited by marklcfc

  • 3 months later...

I read that there are some page rules that are recommended  for  CF + invisionpower.  Did I read right?

is there anyone who can post them here ?

  • 2 weeks later...

Trying to setup guest caching but I'm not able to get any of the cookies to work for me. I have if cookie = ips4_member_id but it still caches if you're logged in. Same for ips4_loggedIn

  • 3 months later...

How do you get around guest caching sending guests to an error page when clicking accept or reject cookies with the latest changes to the cookie notice?

Hi Randy, 

yes, these rules are included and content is being cached for guests. My point is to cache for everybody the pages content since never changes. 

Funny is that Cloudflare cache is working and pages takes no time to load (I guess due to the service worker), but the Pagespeed, webpagetest and gtmetrix benchmarks for guests show horrible numbers anyway. Even with several benchmarks the speed is the same.

Not comparing apples to apples, but I have a Magento site, extremely expensive in terms of resources, and having exactly the same technology (nginx, opcache, redis, mariadb, php8.1) the page experience is amazing, but on the Invision forum I get awful numbers.

Invision based Site

Could contain: Page, Text, Number, Symbol

Magento based Site

Could contain: Page, Text, Number, Symbol

At this point, I don't know what to do, show a stripped down version, remove functionality, disable plugins or default theme, etc. Nothing worked at all. 

I'm hosting in DigitalOcean with a big server, I've analyzed every portion of the page load, it's consistent around 1.5 to 3 seconds to load with my browser, but on synthetic benchmarks numbers are worse.

Honestly don't know what to do to improve the speed. On the continuous rise of social networks, we're losing subscribers, and on top of that this level of user experience is not good.

Best regards

Ricardo

 

 

 

 

Could contain: Text

Could contain: Page, Text, File, Webpage

Could contain: File, Webpage, Page, Text

Recently Browsing 0

  • No registered users viewing this page.