Title: cloudflare + Swift problem
Last modified: October 31, 2019

---

# cloudflare + Swift problem

 *  Resolved [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/)
 * (@visuallydesigned)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/cloudflare-swift-problem/)
 * So i have another problem, which is cloudflare does not cache the root html (
   1st response “/”, the html page itself) and keeps it set to “expired” if swift
   is running. when i disable swift it changes to “hit”, when i activate swift it
   becomes “expired”, the other assets work, its just the this one that doesn’t..
   it’s critical for the ttfb.
    Will add images in a bit.
    -  This topic was modified 6 years, 7 months ago by [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcloudflare-swift-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/)
 * (@visuallydesigned)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/cloudflare-swift-problem/#post-12083881)
 * cloudflare only – no swift:
 * > [View post on imgur.com](https://imgur.com/ah1PF47)
 * 
    [https://imgur.com/bnN8O2Q](https://imgur.com/bnN8O2Q) – cloudflare shows “
   hit” and note the ttfb
 * > [View post on imgur.com](https://imgur.com/OoQHTmC)
 * Swift only / Default (no swift or cloudflare):
 * > [View post on imgur.com](https://imgur.com/H2Qy5fk)
 * swift + cloudflare
    [https://imgur.com/TWwM3ue](https://imgur.com/TWwM3ue) – 
   look at the header it keeps saying expired and thus results in more ttfb.
 * > [View post on imgur.com](https://imgur.com/MjkjNEV)
 * 
    [https://imgur.com/LWWkL5g](https://imgur.com/LWWkL5g) – other assets are caching
   on cloudflare
 * > [View post on imgur.com](https://imgur.com/e3HUn6F)
 *  Thread Starter [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/)
 * (@visuallydesigned)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/cloudflare-swift-problem/#post-12083893)
 * so my question is, i want to take advantage of swift’s caching with cloudflare’s
   cdn to have my content in multiple locations, I want it to include the “/”(html
   page itself) in cloudflare –like it usually does without swift– so that i get
   the speed benefits from both swift and cloudflare.
    I tried: -purging both of
   them -reinstalling swift and resetting cloudflare
 * I’m having another problem here: [https://wordpress.org/support/topic/unable-to-detect-https/](https://wordpress.org/support/topic/unable-to-detect-https/)
   
   Could the 2 be related to each other? like since it’s caching only http, somehow
   cloudflare is caching what swift is caching and skipping the root html? Please
   help
    -  This reply was modified 6 years, 7 months ago by [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/).
 *  Thread Starter [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/)
 * (@visuallydesigned)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/cloudflare-swift-problem/#post-12084084)
 * Okay, since i fixed my previous problem will be testing this again and hopefully
   have it be fixed as well.
    **Edit:** The problem still persisted but i fixed/
   bypasses it by disabling Gzip and browser caching from swift settings –> Caching.
   I think my server already caches using gzip, so not like i’m losing anything 
   but idk why it would do that. I turned them back on and had the problem again,
   so im pretty sure it’s from them.. it was setting the html page expire’s to today.
   Mark as solved please, but there might be a bug in one or both of these settings
   mentioned above, fix please 🙂
    -  This reply was modified 6 years, 7 months ago by [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/).
    -  This reply was modified 6 years, 7 months ago by [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/).

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

The topic ‘cloudflare + Swift problem’ is closed to new replies.

 * ![](https://ps.w.org/swift-performance-lite/assets/icon-256x256.jpg?rev=2388229)
 * [Swift Performance Lite](https://wordpress.org/plugins/swift-performance-lite/)
 * [Support Threads](https://wordpress.org/support/plugin/swift-performance-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/swift-performance-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/swift-performance-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/swift-performance-lite/reviews/)

 * 3 replies
 * 1 participant
 * Last reply from: [visuallydesigned](https://wordpress.org/support/users/visuallydesigned/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/cloudflare-swift-problem/#post-12084084)
 * Status: resolved