-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete content retrieval on HTTP HEAD requests puts an unnecessary burden on tds #124
Comments
I think at the very least we can make it configurable. As you mention, there is a cost based on the size of the backing datasets, but the cost will vary based on service type as well. For example, the |
@ethanrd - what do you think? |
I agree, but file size should probably come from the filesystem rather than opening the file and do a complete stream from disk to memory to count the bytes. |
Indeed. I would grab file size from the |
Hi @cskarby - Looks like all TDS services except We could look at moving in a similar direction for the other TDS services (and make inclusion of Are you seeing performance issues with |
Keep in mind that THREDDS now supports cloud file hosting, such as CDMS3 and CDMRemote. Calculating the file size is not always as simple as asking the file system. |
According to https://tools.ietf.org/html/rfc7231#section-4.3.2 payload headers are optional for HTTP HEAD responses.
Content-Length is a payload header according to https://tools.ietf.org/html/rfc7231#section-3.3
In
tds/tds/src/main/java/thredds/servlet/filter/HttpHeadFilter.java
Lines 41 to 45 in 987a79b
The text was updated successfully, but these errors were encountered: