File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ function handleResult (
229
229
}
230
230
231
231
if ( result . etag ) {
232
- headers . etag = result . etag
232
+ headers [ 'if-none-match' ] = result . etag
233
233
}
234
234
235
235
if ( result . vary ) {
Original file line number Diff line number Diff line change @@ -155,6 +155,14 @@ describe('Cache Interceptor', () => {
155
155
} ) . listen ( 0 )
156
156
157
157
const client = new Client ( `http://localhost:${ server . address ( ) . port } ` )
158
+ . compose ( ( dispatch ) => {
159
+ return ( opts , handler ) => {
160
+ if ( opts . headers ) {
161
+ strictEqual ( Object . prototype . hasOwnProperty . call ( opts . headers , 'if-none-match' ) , false )
162
+ }
163
+ return dispatch ( opts , handler )
164
+ }
165
+ } )
158
166
. compose ( interceptors . cache ( ) )
159
167
160
168
after ( async ( ) => {
You can’t perform that action at this time.
0 commit comments