You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/online_image.rst
+22
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,28 @@ Automations
66
66
67
67
- **on_download_finished** (*Optional*, :ref:`Automation <automation>`): An automation to perform when the image has been successfully downloaded.
68
68
69
+
The variable ``cached`` is a boolean available in :ref:`lambdas <config-lambda>` that indicates cache status:
70
+
- ``true`` if the image was loaded from cache (cache hit).
71
+
- ``false`` if the image was freshly downloaded (cache miss).
72
+
73
+
Caching follows standard HTTP mechanisms (see `HTTP caching <https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching>`_), utilizing the ``Last-Modified`` and ``ETag`` headers.
0 commit comments