Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

frontend_reload_control

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frontend_reload_control

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Requirements

  • angular
  • angular-cookies (ngCookies)

Rails setup for angular

Add gem

gem 'frontend_reload_control'

Add in application.js

//= require frontend_reload_control

Add on your main modules

.config(function ($httpProvider) {
  $httpProvider.interceptors.push('FrontendReloadControlInterceptor')
})

Cors (optional)

If your frontend and api has diferents domains you need to configure CORS to expose X-Frontend-Reload-Control-Timestamp header. Need help? https://github.com/cyu/rack-cors

Tips

This gem will looks for timestamp.txt file on root of project to setup the actual version of app, if it doesn't exists it will use Time.now.to_i at APP startup.

If you want to avoid browser to reload for each APP restarts you need to fill timestamp.txt when you deploy your APP.

FAQs

Package last updated on 24 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc