Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is it possible to inject a 'Cache-Control: max-age=3600' via App Builder attribute for a BLOB?

GasparYYCMar 9 2021

Hi.
I have a fairly heavy page and the image shown is bogging down the page, there are other areas to optimize but if its possible to inject the 'Cache-Control: max-age=3600' would be a quick gain and that's what I'm after.
I know it is possible to do it by creating an application process e.g:https://joelkallman.blogspot.com/2014/03/yet-another-post-how-to-link-to.html but unfortunately I can't change that right now, maybe in the future, so I was wondering if I could turn on Caching for an-hour as an example using one of the "Display Image" Item type properties in Application Builder.

By inspecting the code I see currently APEX is generating this call:
src="apex_util.get_blob_file?a=559&s=150031&p=131&d=1259579....oQ&p_content_disposition=attachment"

And what I would like is to generate this:
src="apex_util.get_blob_file?a=559&s=150031&p=131&d=1259579....oQ&p_content_disposition=attachment&Cache-Control: max-age=3600"

Does anyone know where could that be declaratively added in the App Builder for this page?

Note: The page is currently using Auto Row Fetch as a process to get the data out from the database.

Thanks

Comments
Post Details
Added on Mar 9 2021
5 comments
493 views