httpClient method HEAD

For precaching of images, I’d like to use httpClient with method ‘HEAD’.
Cause I don’t care about the body… I just want to trigger image caching…

http://repo.enonic.com/public/com/enonic/xp/docs/6.6.1/docs-6.6.1-libdoc.zip!/module-lib_xp_http-client.html#.request

Did you try setting method: 'HEAD' in the params?

No :slight_smile: I follow the doc :slight_smile:

The HTTP method to use for the request (e.g. “POST”, “GET”, “PUT”).

“e.g.” they are examples :slight_smile:
But I see that it could be more clear, will update and add all common HTTP methods to the JS doc.

Ah, yeah, my eyes skipped that part easily :flushed:

Can we close this thread then?

1 Like