What is the name of the domain?
What is the error message?
cf-cache-status: BYPASS
What is the issue you’re encountering
caching is not done
What steps have you taken to resolve the issue?
I have php application and configured .htaccess file and httpd.conf file to match the configuration on cloudflare, still getting cf-cache-status: BYPASS
What are the steps to reproduce the issue?
check in network tab for cf-cache-status: BYPASS
Lili84
July 26, 2024, 11:08am
2
Hi,
Thank you for reaching out to us. I don’t see the cf-cache-status as bypass like you’ve mentioned:
< HTTP/2 200
< date: Fri, 26 Jul 2024 10:54:20 GMT
< content-type: text/html; charset=UTF-8
< set-cookie: AWSALBTG=EM+fNtdHI9njSREjWi+zeYTTu8NWIClTfv+7dqDbY/9yPn5/5iFjfzKSaYcIsdw66F7IAihZAy/i/i7Pn/9wRD5XQdwtvG7B/mhEE2mDloFW71Qsi+gxHSjzuFlZnmeaG0ca0/XsZNm4haGzSo6EDM7TYKuUP4PO6vpaHVA1qNIc; Expires=Fri, 02 Aug 2024 10:54:19 GMT; Path=/
< set-cookie: AWSALBTGCORS=EM+fNtdHI9njSREjWi+zeYTTu8NWIClTfv+7dqDbY/9yPn5/5iFjfzKSaYcIsdw66F7IAihZAy/i/i7Pn/9wRD5XQdwtvG7B/mhEE2mDloFW71Qsi+gxHSjzuFlZnmeaG0ca0/XsZNm4haGzSo6EDM7TYKuUP4PO6vpaHVA1qNIc; Expires=Fri, 02 Aug 2024 10:54:19 GMT; Path=/; SameSite=None; Secure
< set-cookie: csrf_cookie_name=31c0a286883167d12d3dd134776c3bd7; expires=Fri, 26-Jul-2024 12:54:19 GMT; Max-Age=7200; path=/
< set-cookie: ci_session=g39knu80hfnd9671er8acq3q9nbss20m; expires=Fri, 26-Jul-2024 12:54:19 GMT; Max-Age=7200; path=/; HttpOnly
< set-cookie: LANGUAGE=english; expires=Mon, 05-Aug-2024 17:09:19 GMT; Max-Age=886500; path=/
< x-powered-by: PHP/7.1.33
< expires: Thu, 19 Nov 1981 08:52:00 GMT
< cache-control: no-cache, private
< pragma: no-cache
< vary: Accept-Encoding,User-Agent
< access-control-allow-origin: *
< x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
< cf-cache-status: DYNAMIC
< report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=YrWb0NDIlz15OOk4kmmCrxW8%2B5vLHeDJCS7wktqXsUdF17FUzXOs7UaMGOYTKpe8cxCMN8LxEf15NkSYetT9KCjwmTHfc69M8QN17PIFwYMxoZ2BDWisKjDL8qDBwcwLXJBFqxlQsOaRe155VFth2co%3D"}],"group":"cf-nel","max_age":604800}
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< server: cloudflare
< cf-ray: 8a93d9d83b3e3d11-CDG
< alt-svc: h3=":443"; ma=86400
Please also note that your cache-control is set as no cache, private.
Dynamic means that Cloudflare does not consider the asset eligible to cache and your Cloudflare settings do not explicitly instruct Cloudflare to cache the asset. Instead, the asset was requested from the origin web server. Use Cache Rules to implement custom caching options.
For more information please refer to the following: Cloudflare cache responses · Cloudflare Cache (CDN) docs
Kindly,
Hi @Lili84 ,
Thanks for you response. Could you please let me know the process by which you have checked and got the cache-control is set as no cache, private.
I have tried below and getting Cache-Status: BYPASS
curl -I https://www.dreamroyale.com/assets/images/Cards-1.png , I am getting CF-
Also below is my configuration -
Also, I have explicitly mentioned below configuration on Apache and htaccess
.htaccess -
<FilesMatch “.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|svg)$”>
Header set Cache-Control “public, max-age=691200”
Header unset Set-Cookie
httpd.conf-
<FilesMatch “.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|svg)$”>
Header set Cache-Control “max-age=691200, public”
Header unset Set-Cookie
<FilesMatch "\.php$">
Header set Cache-Control "no-cache, private"
</FilesMatch>
</IfModule>
rule on cloudflare -
dreamroyale.com/ .(jpg|jpeg|png|gif|svg|js|css|woff|woff2|ttf|eot|ico)
Browser Cache TTL: 8 days, Cache Level: Cache Everything, Edge Cache TTL: 14 days
could you please help me, how I can update my configuration to make sure my static content should be cached by cloudflare.
Thanks
sandro
July 27, 2024, 11:26am
5
alibusrental:
not accessible
The site seems to load just fine.
system
Closed
July 29, 2024, 11:27am
6
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.