@@ -125,13 +125,8 @@ private void CreateAnAddEndpoints(
125
125
foreach ( var ( label , route , values ) in _resolvedRoutes )
126
126
{
127
127
var ( mimeType , cacheSetting ) = ResolveContentType ( asset , ContentTypeProvider , matchContext , Log ) ;
128
- var headers = new StaticWebAssetEndpointResponseHeader [ 6 ]
128
+ var headers = new StaticWebAssetEndpointResponseHeader [ 5 ]
129
129
{
130
- new ( )
131
- {
132
- Name = "Accept-Ranges" ,
133
- Value = "bytes"
134
- } ,
135
130
new ( )
136
131
{
137
132
Name = "Content-Length" ,
@@ -159,14 +154,14 @@ private void CreateAnAddEndpoints(
159
154
{
160
155
// max-age=31536000 is one year in seconds. immutable means that the asset will never change.
161
156
// max-age is for browsers that do not support immutable.
162
- headers [ 5 ] = new ( ) { Name = "Cache-Control" , Value = "max-age=31536000, immutable" } ;
157
+ headers [ 4 ] = new ( ) { Name = "Cache-Control" , Value = "max-age=31536000, immutable" } ;
163
158
}
164
159
else
165
160
{
166
161
// Force revalidation on non-fingerprinted assets. We can be more granular here and have rules based on the content type.
167
162
// These values can later be changed at runtime by modifying the endpoint. For example, it might be safer to cache images
168
163
// for a longer period of time than scripts or stylesheets.
169
- headers [ 5 ] = new ( ) { Name = "Cache-Control" , Value = ! string . IsNullOrEmpty ( cacheSetting ) ? cacheSetting : "no-cache" } ;
164
+ headers [ 4 ] = new ( ) { Name = "Cache-Control" , Value = ! string . IsNullOrEmpty ( cacheSetting ) ? cacheSetting : "no-cache" } ;
170
165
}
171
166
172
167
var properties = new StaticWebAssetEndpointProperty [ values . Count + ( values . Count > 0 ? 2 : 1 ) ] ;
0 commit comments