Skip to content

Commit

Permalink
ER-592 🔖 - Versioning application.js and application.cs assets for ca…
Browse files Browse the repository at this point in the history
…che busting purposes.
  • Loading branch information
sachpatel committed Jun 19, 2018
1 parent 6cd8250 commit 1b117e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Employer/Employer.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public string GetTitle()
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:image" content="/lib/esfa-govuk/assets/images/opengraph-image.png">

<link rel="stylesheet" media="screen" href="/css/application.css" />
<link asp-append-version="true" rel="stylesheet" media="screen" href="/css/application.css" />
<script src="/lib/jquery/dist/jquery.js"></script>
<script src="/lib/jscookie/js.cookie.js"></script>
<environment exclude="@EnvironmentNames.GetNonProdEnvironmentNamesCommaDelimited()">
Expand Down Expand Up @@ -191,7 +191,7 @@ public string GetTitle()

<script src="/lib/esfa-govuk/assets/javascripts/govuk-template.js"></script>
<script src="/lib/esfa-govuk/assets/javascripts/govuk/show-hide-content.js"></script>
<script src="/javascripts/application.js"></script>
<script asp-append-version="true" src="/javascripts/application.js"></script>

</body>
</html>
10 changes: 1 addition & 9 deletions src/QA/QA.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:image" content="/lib/esfa-govuk/assets/images/opengraph-image.png">

<link rel="stylesheet" media="screen" href="/css/application.css" />
<link asp-append-version="true" rel="stylesheet" media="screen" href="/css/application.css" />
<script src="/lib/jquery/dist/jquery.js"></script>
<!-- <environment include="Development">
<link rel="stylesheet" media="screen" href="wwwroot/css/application.css" />
<script src="/lib/jquery/dist/jquery.js"></script>
</environment> -->
<!-- <environment exclude="Development">
<link rel="stylesheet" media="screen" href="~/css/application.min.css" />
<script src="/lib/jquery/dist/jquery.min.js"></script>
</environment> -->
</head>

<body>
Expand Down

0 comments on commit 1b117e0

Please sign in to comment.