How does CloudFlare Handle JS Redirects?
How does CloudFlare Handle JS Redirects? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the How does CloudFlare Handle JS Redirects? error on your web browser. Problem :
Solution :
We hope that this article has helped you resolve the redirects, javascript, cloudflare error in your web browsers. Enjoy browsing the internet uninterrupted!
I need to implement a couple Javascript redirects using window.location on my site. This redirect fires in very specific circumstances and I don't want that redirect cached.
I found info about how CloudFlare handles 301s and 302s but how will it respond to JS redirecting?
Thank you!
CloudFlare will cache a JS redirect just like it caches a normal HTML page, because a JS redirect is a normal HTML page. If you don't want CloudFlare to cache particular JS redirecting code, I suggest you use a page rule to specify that you do not want the HTML/JS that initiates the redirect cached.
Comments
Post a Comment