Skip to content

Use Cloudflare CDN for static assets #2351

@mroderick

Description

@mroderick

Description of the issue 📄

During a past incident I learned that Rails is serving up static assets, which is completely unnecessary. We already have the domain set up with Cloudflare, so we may as well use their CDN and save some load on the Rails app.

Screenshots 📷

Go look at the log files ;)

Steps to fix 🛠

https://www.bigbinary.com/blog/using-cloudflare-as-cdn-for-rails-applications

To do 📋

  • Claim this issue (comment below, or assign yourself if you are part of the codebar org)
  • Fork and clone the repository
  • Update the relevant files. Follow the steps to fix section in this issue.
  • Commit your changes as one commit. Use the title of this issue as your commit message
  • Submit a pull request
  • Mention this issue in the PR description by including it's number
  • Have your pull request reviewed & merged by a codebar team member

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions