public class ETagWebRequestor extends DefaultWebRequestor
Is the response status code 304 (NOT MODIFIED) the old response from cache is used.
Attention: even 304 responses count as request at Facebook and so they count against the throttling limits. Facebook suggests to use them for data that change only frequently
Further information regarding ETag at Facebook can be found here: https://developers.facebook.com/blog/post/627/
Attention 2: If excessively used with a lot of URLs, the
SoftHashMap can lead to a
|Constructor and Description|
|Modifier and Type||Method and Description|
return if cache is used.
activate/deactivate the ETag-Cache for the next request.
executeDelete, executeGet, executePost, executePost, getCurrentHeaders, getDebugHeaderInfo, isAutocloseBinaryAttachmentStream, setAutocloseBinaryAttachmentStream
public boolean isUseCache()
trueif ETag-Cache is used,
public void setUseCache(boolean useCache)
when deactivated, the ETag-Cache is *not* deleted
RestFB 1.41.0. Copyright © 2010-2015 Mark Allen. All Rights Reserved.