HTTP request-header field used with a method to make it conditional. It allows efficient updates of cached information with a minimum amount of transaction overhead.
Questions tagged [if-none-match]
33 questions
2
votes
0 answers
Handling of Etag in NSUrlConnection seems to be kind of random
Setup
In our current project we us AFNetworking (based on Foundation URL Loading System). Everything works fine so far.
Theory
Recently we introduced ETag in the response header, which should be handled be NSURLConnection (means the Foundation URL…

GatoCurioso
- 225
- 3
- 11
1
vote
1 answer
Does Spring handle the combination of If-Modified-Since and If-None-Match correctly?
Expected behaviour:
If-None-Match has precedence when If-None-Match is used in combination with If-Modified-Since.
The function checkNotModified in org.springframework.web.context.request.ServletWebRequest even references the expected order of…

Kaffekoppen
- 392
- 3
- 12
1
vote
1 answer
how to send if-none-match header with scrapy or requests in python?
I am scraping a site with Scrapy but some of it's API's are not returning JSON data without the 'if-none-match' header.
I have greater than 100 API's list so I want to generate automatic headers for getting a valid JSON file. anybody knows how to…

FAIZ AHMED
- 35
- 7
1
vote
0 answers
If-None-Match header after a 302 redirection in Internet Explorer 11
We are using ETag and If-None-Match headers to improve the performances of our Single Page Application on the initial load.
I have noticed that Internet Explorer do not react the same way than Firefox and Chrome when a redirection (303 or 302) is…

Jmini
- 9,189
- 2
- 55
- 77
1
vote
1 answer
How does an Etag token works in Conditional GET in HTTP?
So basically I want to understand the working of ETag token value in If-None-Match header in the request.
I have understood the working of If-modifies-since conditional GET method.
Can someone explain in simple terms how Conditional GET work in…

this.that
- 97
- 1
- 1
- 9
1
vote
1 answer
Code generated from Odata v4 Service T4 template for client proxy does not add If-None-Match header to query request
I made WebAPI 2 service with OData v4 protocol by using ODataController classes and supporting concurrency checking in Entity Framework. Code for client side is generated by using Odata Client T4 template. This code generates proxy classes and…

Vukasin Spasic
- 21
- 5
1
vote
0 answers
codeception get request with if-none-match does not return 304
i am using codeception for the code coverage of a REST API. In my current case, i want to test the behaviour of sending a request to receive an ETag-Header for the requested resource and reuse the value of this ETag in a second request on the same…

ndo
- 96
- 7
0
votes
0 answers
How can I make use of the If-None-Match header in the Google APIs Client Library for JavaScript?
How can I make use of the If-None-Match header in the Google APIs Client Library for JavaScript? I have written the following code, but even when the ETag remains the same, the response status is always 200. How can I modify it to receive a 304…

ido han
- 13
- 3
0
votes
0 answers
What is the difference between using If-None-Match header and using Cache-Control: no-cache?
My understanding of Cache-Control: no-cache is that it always asks the server to validate the cache.
I understand that "ETag" is used for validation in this case, how is this different from the client requesting validation using the "If-None-Match"…

thxwelchs
- 15
- 5
0
votes
1 answer
how to scrape a page which uses if-non-match and cookies with scrapy or any other tool?
I am trying to scrape an API that returns a JSON object but it only returns a JSON very first time and after it, it's not returning anything. i am using "if-none-match" header with Cookies but i want to do it without Cookies because I have lots of…

FAIZ AHMED
- 35
- 7
0
votes
1 answer
Okhttp doesn't return cached response when using Etags
I have a simple use case where a server returns an Etag for a request and that etag is added as a header (i.e. If-None-Match) to all subsequent url requests. The server can respond with a 200 if there is a change in the response or a 304 otherwise.…

Abhijit
- 4,853
- 3
- 30
- 33
0
votes
0 answers
Safari does not always send If-None-Match for a Get on Page Load
I have a mock project where I am testing Etag and If-None-Match behavior on different browsers. A Get request is sent on page load and I will always respond with 200 and assign a new Etag value.
window.addEventListener('load', () =>…

Dean
- 1,833
- 10
- 28
0
votes
1 answer
javax Request object not evaluating precondition for If-None-Match header
I am running a REST service in Wildfly and I am attempting to use the Request.evaluatePreconditions method to generate a 304 Not Modified response.
I am passing an eTag value in the request's If-None-Match header, but the evaluatePreconditions…

El Goodo
- 284
- 1
- 4
- 14
0
votes
0 answers
Whats the best to grab an Etag and use it in subsequent requests set to the If-None-Match header?
I see alot of other questions on this but as Node.js is a server-side language "Etag support" seems to be referring to the a nodejs app creating, sending and handling what code to give back to their client. In my case I am requesting and not sending…

garrettmac
- 8,417
- 3
- 41
- 60
0
votes
1 answer
FirefoxOS marketplace after update (Fx0 device)
I and at least some other users cannot use the Marketplace after updating the marketplace. The phone loads the app but the page just sits there. I traced the network and I see that no content is returned from the server. If I remove the header…

user1529413
- 458
- 8
- 19