add revisioning to js/css files to break caching
This moves the location of javascript files, commonFramework, iFrameScript, sandbox, plugin, and all the less files. On gulp or gulp build these files are moved and revisioned. Places where they are references in jade/html are now removed and replaced with the use of a helper function `rev`. This function will take the required file and return a string referencing the revisioned file. This should alleviate the need for hard refreshing and will break caches when files change, so fixes for firefox caching issue as well. NOTE: @benmcmahon @quincylarson, This means files will need to be build on the server in production before doing a server restart/reload In production: 'npm run build' To build and revision js/css files `gulp` and `gulp build` will used in development npm install also needs to be run in production on initial deploy
This commit is contained in:
11
.gitignore
vendored
11
.gitignore
vendored
@ -31,4 +31,15 @@ coverage
|
||||
|
||||
server/*.bundle.js
|
||||
public/js/*.bundle.js
|
||||
|
||||
*.map
|
||||
|
||||
// revision manifest
|
||||
public/js/main*
|
||||
public/js/commonFramework*
|
||||
public/js/sandbox*
|
||||
public/js/iFrameScripts*
|
||||
public/js/plugin*
|
||||
public/css/main*
|
||||
|
||||
server/rev-manifest.json
|
||||
|
@ -1,4 +1,4 @@
|
||||
This is the entry point for the client
|
||||
This is the entry point for the client code
|
||||
Code that should only run on the client should be put here.
|
||||
|
||||
NOTE(berks): For react specific stuff this should be the entry point
|
||||
|
@ -130,7 +130,7 @@ var libraryIncludes = "<script src='//ajax.googleapis.com/ajax/libs/jquery/2.1.3
|
||||
|
||||
|
||||
var editorValueForIFrame;
|
||||
var iFrameScript = "<script src='/js/lib/coursewares/iFrameScripts_0.0.4.js'></script>";
|
||||
var iFrameScript = "<script src='/js/iFrameScripts.js'></script>";
|
||||
|
||||
var delay;
|
||||
// Initialize CodeMirror editor with a nice html5 canvas demo.
|
Before Width: | Height: | Size: 306 KiB After Width: | Height: | Size: 306 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user