Details
Details
Assignee
Unassigned
UnassignedReporter
Zac Spitzer
Zac SpitzerPriority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 8 January 2022 at 15:21
Updated 8 January 2022 at 19:06
The apache http client supports an optional cache layer
https://hc.apache.org/httpcomponents-client-4.5.x/current/tutorial/html/caching.html
<cfscript> http url="...." cachename="lucee_cache"; </cfscript>
where the cache is an application/server/content defined cache
https://github.com/Spantree/httpclient-cache-redis/blob/master/src/main/java/org/apache/http/impl/client/cache/redis/RedisHttpCacheStorage.java
the httpclient’s
CacheResponseStatus
should be added a key/value in the resultat the moment
it’s only via a broadly defined
cacheHandler
, not configurable between individual calls https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/lucee/runtime/tag/Http.java#L773it doesn’t respect http cache semantics (i.e. POST should never be cached, expires, no-cache headers etc) https://github.com/lucee/Lucee/blob/6.0/core/src/main/java/lucee/runtime/tag/Http.java#L1317
it’s only opt in via
cachedWithin
(request/timestamp) https://docs.lucee.org/reference/tags/http.html#attribute-cachedwithinisn’t clearly documented
returned cached results lack metadata indicating it was cached