? Editing: Post:21.body Save Delete Cancel
Initial sync in progress...

Newest topics

Follow in NewsfeedFollowing
+ Start new topic
Loading...
stickied

Title

Body
^1 ^2 added ━ started by user_name
More topics

 

Follow in NewsfeedFollowing

[tutorial] How to make all images, videos of my zite (zeroblog, etc.) OPTIONAL

This works possibly for all the zites.

ISSUE:
You are admin of the zeronet site and you see its size grows => New visitors is asked to increase site quota and download tens of megabytes => not good.

SOLUTION:

  1. open your zite; mouse drag & drop (0) corner button to the left to open its menu in which you click the "OPEN SITE DIRECTORY" link

  2. open content.json and add following new line after for example line "modified": *,
    "optional": "(data/img/.*|data/vid/.*)",
    alternatively to exclude all particular file types, no matter in which directory they are, try:
    "optional": ".*webm|.*mp4|.*flv|.*jpg",

  3. Sign and publish changes

  4. files copied to data/img/, data/vid will no longer be force downloaded by all new site visitors but become optional (will be loaded once visitor request the page that contain them).


Related topic: How to create static site with big streamable vide0s

^7 ^8 ssdifnskdjfnsdjk posted on Apr 10, 2019
Please sign innew comment
Sign in as...
Submit comment
You are running out of your allowed space, please contact the site's admin at unknown to raise your limit.
user_nameadded ^1 ^2
Reply
Body
klu9on Apr 11, 2019 ^1 ^2
Reply

re step1: I see no "OPEN SITE DIRECTORY" link in my zite's side panel. (But I have it bookmarked in my file manager, so I went to it that way.) Apart from that, I think it works :) Thanks for the tip.

This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More