-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve static asset build process and cache headers (#2560)
This PR improves the static asset build process by using the Mix build system to copy all static files instead of only those which are compiled or relocated. By making Mix aware of all of the static assets, the `mix()` helper function can be used to add cache busting extensions to all static asset file paths. This in turn allows an aggressive cache policy to be put in place. Although the caching policy only resulted in a marginal speedup in my local environment, I expect it to have a more significant impact in production environments where assets have to travel a greater distance.
- Loading branch information
1 parent
a6cdddb
commit 236cfd4
Showing
136 changed files
with
176 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,55 @@ | ||
vendor/* | ||
public/laravel/* | ||
public/build/* | ||
_build/* | ||
cypress_cache/* | ||
app/cdash/public/* | ||
public/js/ui.tabs.js | ||
public/js/tabNavigation.js | ||
public/js/services/renderTimer.js | ||
public/js/services/multisort.js | ||
public/js/services/modal.js | ||
public/js/services/filters.js | ||
public/js/services/comparators.js | ||
public/js/services/apiLoader.js | ||
public/js/services/anchors.js | ||
public/js/linechart.js | ||
public/js/jquery.tablesorter.js | ||
public/js/jquery.metadata.js | ||
public/js/je_compare.js | ||
public/js/filters/terminalColors.js | ||
public/js/filters/showEmptySubProjectsLast.js | ||
public/js/directives/timeline.js | ||
public/js/directives/onFinishRender.js | ||
public/js/directives/daterange.js | ||
public/js/directives/convertToNumber.js | ||
public/js/directives/buildgroup.js | ||
public/js/directives/build.js | ||
public/js/directives/autocomplete.js | ||
public/js/controllers/viewTest.js | ||
public/js/controllers/viewSubProjects.js | ||
public/js/controllers/viewDynamicAnalysisFile.js | ||
public/js/controllers/viewBuildError.js | ||
public/js/controllers/userStatistics.js | ||
public/js/controllers/testSummary.js | ||
public/js/controllers/testOverview.js | ||
public/js/controllers/subproject.js | ||
public/js/controllers/queryTests.js | ||
public/js/controllers/overview.js | ||
public/js/controllers/manageSubProject.js | ||
public/js/controllers/manageOverview.js | ||
public/js/controllers/manageBuildGroup.js | ||
public/js/controllers/index.js | ||
public/js/controllers/head.js | ||
public/js/controllers/filters.js | ||
public/js/controllers/compareCoverage.js | ||
public/js/controllers/buildProperties.js | ||
public/js/cdash_angular.js | ||
public/js/cdashViewCoverage.js | ||
public/js/cdashUploadFilesSorter.js | ||
public/js/cdashSortable.js | ||
public/js/cdashSiteSorter.js | ||
public/js/cdashProjectRole.js | ||
public/js/cdashManageUsers.js | ||
public/js/cdashManageCoverageSorter.js | ||
public/js/cdashFilters.js | ||
public/js/cdashCoverageGraph.js | ||
public/js/bulletchart.js | ||
public/assets/* | ||
resources/js/angular/ui.tabs.js | ||
resources/js/angular/tabNavigation.js | ||
resources/js/angular/services/renderTimer.js | ||
resources/js/angular/services/multisort.js | ||
resources/js/angular/services/modal.js | ||
resources/js/angular/services/filters.js | ||
resources/js/angular/services/comparators.js | ||
resources/js/angular/services/apiLoader.js | ||
resources/js/angular/services/anchors.js | ||
resources/js/angular/linechart.js | ||
resources/js/angular/jquery.tablesorter.js | ||
resources/js/angular/jquery.metadata.js | ||
resources/js/angular/je_compare.js | ||
resources/js/angular/filters/terminalColors.js | ||
resources/js/angular/filters/showEmptySubProjectsLast.js | ||
resources/js/angular/directives/timeline.js | ||
resources/js/angular/directives/onFinishRender.js | ||
resources/js/angular/directives/daterange.js | ||
resources/js/angular/directives/convertToNumber.js | ||
resources/js/angular/directives/buildgroup.js | ||
resources/js/angular/directives/build.js | ||
resources/js/angular/directives/autocomplete.js | ||
resources/js/angular/controllers/viewTest.js | ||
resources/js/angular/controllers/viewSubProjects.js | ||
resources/js/angular/controllers/viewDynamicAnalysisFile.js | ||
resources/js/angular/controllers/viewBuildError.js | ||
resources/js/angular/controllers/userStatistics.js | ||
resources/js/angular/controllers/testSummary.js | ||
resources/js/angular/controllers/testOverview.js | ||
resources/js/angular/controllers/subproject.js | ||
resources/js/angular/controllers/queryTests.js | ||
resources/js/angular/controllers/overview.js | ||
resources/js/angular/controllers/manageSubProject.js | ||
resources/js/angular/controllers/manageOverview.js | ||
resources/js/angular/controllers/manageBuildGroup.js | ||
resources/js/angular/controllers/index.js | ||
resources/js/angular/controllers/head.js | ||
resources/js/angular/controllers/filters.js | ||
resources/js/angular/controllers/compareCoverage.js | ||
resources/js/angular/controllers/buildProperties.js | ||
resources/js/angular/cdash_angular.js | ||
resources/js/angular/cdashViewCoverage.js | ||
resources/js/angular/cdashUploadFilesSorter.js | ||
resources/js/angular/cdashSortable.js | ||
resources/js/angular/cdashSiteSorter.js | ||
resources/js/angular/cdashProjectRole.js | ||
resources/js/angular/cdashManageUsers.js | ||
resources/js/angular/cdashManageCoverageSorter.js | ||
resources/js/angular/cdashFilters.js | ||
resources/js/angular/cdashCoverageGraph.js | ||
resources/js/angular/bulletchart.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
public/js/directives/build.js → resources/js/angular/directives/build.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
CDash.directive('build', ["VERSION", function (VERSION) { | ||
return { | ||
templateUrl: 'build/views/partials/build.html?id=' + VERSION, | ||
templateUrl: 'assets/js/angular/views/partials/build.html?id=' + VERSION, | ||
} | ||
}]); |
2 changes: 1 addition & 1 deletion
2
public/js/directives/buildgroup.js → ...urces/js/angular/directives/buildgroup.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
CDash.directive('buildgroup', ["VERSION", function (VERSION) { | ||
return { | ||
templateUrl: 'build/views/partials/buildgroup.html?id=' + VERSION, | ||
templateUrl: 'assets/js/angular/views/partials/buildgroup.html?id=' + VERSION, | ||
} | ||
}]); |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
public/js/directives/daterange.js → resources/js/angular/directives/daterange.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.