New Discussion

Notifications

You’re not receiving notifications from this thread.

How to use the Browser Guard in Rails Discussion

4
General

If you're building a no build Rails application that makes use of modern browser features (like ONCE Campfire!), you'll definitely want to use this.

There is one trap to take care for: If your are using https://pagespeed.web.dev/ (Googles SEO tool) - you will get a -406 not acceptable - error. Looks like the pagespeed crawler is not recognized.

That's probably a bug in the UserAgent bot check I would imagine.

https://github.com/rails/rails/blob/v7.2.0/actionpack/lib/action_controller/metal/allow_browser.rb#L88

After looking over a couple of the web pages on your website, I can honestly say that I enjoy how you write your blog posts. I saved it to my bookmark internet site lol beans list and will be looking at it again shortly. Please have a peek at my website as well and let me know what you think about it.

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 89,509+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.