Allow Hazaar\View::link() and Hazaar\View::requires() external links to be local cached #137

Closed
opened 2018-12-10 22:10:50 +00:00 by jamie · 4 comments
jamie commented 2018-12-10 22:10:50 +00:00 (Migrated from git.hazaar.io)

I have a local cache feature in the CDNJS view helper. It should be possible to have similar functionality, or even move this functionality into the actual view links/requires functions so that externally referenced files can be loaded from a local cache.

Note: This feature of the CDNJS view helper is normally not used in a production environment as it defeats the purpose of a CDN, but in this case, it may be desired. Normally this is used to assist development, particularly when on a slow network or not on a network at all (like when I work from a coffee shop and my phone is flat).

I have a local cache feature in the CDNJS view helper. It should be possible to have similar functionality, or even move this functionality into the actual view links/requires functions so that externally referenced files can be loaded from a local cache. Note: This feature of the CDNJS view helper is normally not used in a production environment as it defeats the purpose of a CDN, but in this case, it may be desired. Normally this is used to assist development, particularly when on a slow network or not on a network at all (like when I work from a coffee shop and my phone is flat).
jamie commented 2018-12-10 22:38:42 +00:00 (Migrated from git.hazaar.io)
created branch [`137-allow-hazaar-view-link-and-hazaar-view-requires-external-links-to-be-local-cached`](https://git.hazaarlabs.com/hazaar/hazaar-mvc/compare/master...137-allow-hazaar-view-link-and-hazaar-view-requires-external-links-to-be-local-cached)
jamie commented 2018-12-10 22:38:55 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !43

mentioned in merge request !43
jamie commented 2018-12-11 01:39:46 +00:00 (Migrated from git.hazaar.io)

mentioned in commit 6564388053

mentioned in commit 65643880532dc6af6cd907c26924a44fa6953b19
jamie commented 2018-12-11 01:39:46 +00:00 (Migrated from git.hazaar.io)

closed via merge request !43

closed via merge request !43
jamie self-assigned this 2025-09-04 01:15:42 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/framework#137
No description provided.