Unity WebGL custom block

Permalink
Hi,
I've been tasked with creating custom block to show webgl content, exported from Unity3D. I've done the showing and editing part, but the block is not caching. Going from page to page (that use the same block and webgl files), again downloads player which downloads corresponding assets files (and those are not small).
Does anyone have any experience with this kind of problem or an idea or link in the right direction?

Thanks,
Nikolas

 
JohntheFish replied on at Permalink Reply
JohntheFish
The cache properties/booleans declared in a block controller only affect how the php/html is cached. For the JS and CSS assets, you can configure how c5 caches and combines when you register the assets. That will take action when the page cache is enabled.

I suspect you now need cache headers for your JS/CSS assets and GL files. The GL files would be completely independent of any c5 caching and you need to tell browsers to cache them. You also need to tell browsers to cache the JS/CSS from c5.

The easiest way to do that is with .htaccess. Do a google for 'htaccess cache headers' and you should get plenty of information about how to use htaccess to add cache headers for particular file types.
eltronnis replied on at Permalink Reply
Thank you for detailed answer. Now I know what to look for. Since I don't have access to the server I'll send them the instructions and I'll post here how it goes.