Yogstation 13 - Modules - TypesProc Details

CDN Webroot asset transport

CDN Webroot asset transport.

Procs

get_asset_urlReturns a url for a given asset. asset_name - Name of the asset. asset_cache_item - asset cache item datum for the asset, optional, overrides asset_name
load_existing_assetsProcesses thru any assets that were registered before we were loaded as a transport.
register_assetRegister a browser asset with the asset cache system We also save it to the CDN webroot at this step instead of waiting for send_assets() asset_name - the identifier of the asset asset - the actual asset file or an asset_cache_item datum.
save_asset_to_webrootSaves the asset to the webroot taking into account namespaces and hashes.
send_assetswebroot asset sending - does nothing unless passed legacy assets
send_assets_slowwebroot slow asset sending - does nothing.

Proc Details

get_asset_url

Returns a url for a given asset. asset_name - Name of the asset. asset_cache_item - asset cache item datum for the asset, optional, overrides asset_name

load_existing_assets

Processes thru any assets that were registered before we were loaded as a transport.

register_asset

Register a browser asset with the asset cache system We also save it to the CDN webroot at this step instead of waiting for send_assets() asset_name - the identifier of the asset asset - the actual asset file or an asset_cache_item datum.

save_asset_to_webroot

Saves the asset to the webroot taking into account namespaces and hashes.

send_assets

webroot asset sending - does nothing unless passed legacy assets

send_assets_slow

webroot slow asset sending - does nothing.