Should I enable caching on web app with dynamic results?

Hello,

I am a happy Cloudflare Pro customer for my web application, however i would like to express you my concern. I have a web application called TrackerWay, where clients login and see the location of their vehicles in real time. You can get an example of my web application here (https://cloud.trackerway.com/demo.php).

Once the clinet login, the web application get many details of his vehicles, which are stored in MySQL. The structure of my web app is following:

  1. HomePage: https://cloud.trackerway.com/
  2. After success login, the URL is: https://cloud.trackerway.com/tracking.phpAND stays like this (all the content is loaded below).

I have choose to Bypass the caching in the URL https://cloud.trackerway.com/tracking/*, because i think that it will hurt my web app (maybe the caching won’t work well?).

However i have some clients from foreign countries, that don’t get very good loading times! Will you recommend me to enable the caching on this page or not? What is your opinion?

Thank you!

No. Absolutely not. You shouldn’t cache any PHP page that’s dynamic user data. Your bypass URL of /tracking/* isn’t going to bypass tracking.php because you put a slash after “tracking”. Try bypassing for
cloud.trackerway.com/tracking*

You don’t need the HTTP/S out front, and tracking* will match .php and anything else that might go on the end of that.

The good news is that most of the content it static. But it looks like you’ve disabled Cloudflare cache for those files. Your site would be much, much faster if you let Cloudflare cache those files on the Edge nodes.

Thanks for the reply. I believe my best solution would be to deactivate this rule, so the CloudFlare will cache the content on a standard way!

This topic was automatically closed after 30 days. New replies are no longer allowed.