It would be nice if it would be possible to make use of the local caching feature, even if private file downloads are enabled. I know, it won't work without some customization, but it would be nice if this would be possible without patching the module.

I've done it for 5.x, where I needed the simple patch attached. Furthermore I forced the setting for local caching to be ON through the settings.php. Then I also had to modify the path, which is used for storing the javascript file to a path that is available for public download.

So, if we'd remove the check for public file downloads, one could force local caching to on by using the settings.php. Then it would be nice if one could override the path for cached js file, probably best just by using variable_get() for it. What do you think?

CommentFileSizeAuthor
ga_5x.patch1.08 KBfago

Comments

hass’s picture

Status: Active » Postponed

Your solution would fully bootstrap core if the JS file is requested... and this produces very high load on your site. Not sure why you have changed it to a subdirectory "/js/googleanalytics".

I'd like to wait for this until core have implemented private/public files, see #166759: Public/Private File Handling. Maybe it helps to get someone on this case if I refuse this implementation here :-)

hass’s picture

Status: Postponed » Closed (works as designed)

Will be supported in D7+ only.