Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noting cached persistently #176

Open
Alsan opened this issue Apr 13, 2021 · 5 comments
Open

Noting cached persistently #176

Alsan opened this issue Apr 13, 2021 · 5 comments

Comments

@Alsan
Copy link

Alsan commented Apr 13, 2021

Hello, I'm trying to build a "Download server" for our offline development environment by using polipo and docker. I've setup the polipo in my own notbook to test the ability of polipo, so far the cache ability is great, but I can't see any download object persist in the cached folder, so what's wrong with my config?

version: "3.8"

services:
  polipo:
    image: vimagick/polipo
    container_name: polipo
    hostname: polipo
    restart: unless-stopped
    command:
      cacheIsShared=false
      socksParentProxy=172.17.0.1:10808
      socksProxyType=socks5
      chunkHighMark=819200
      objectHighMark=128
      pmmFirstSize=16384
      pmmSize=8192
      logLevel=0xFF
    ports:
      - 8123:8123/tcp
    volumes:
      - polipo-cache:/var/cache/polipo:rw
      - polipo-www:/usr/share/polipo/www:ro
    networks:
      - polipo

volumes:
  polipo-cache:
  polipo-www:

networks:
  polipo:
    driver: bridge
@vimagick
Copy link
Owner

Try to append diskCacheRoot=/var/cache/polipo to command.

read more

@Alsan
Copy link
Author

Alsan commented Apr 13, 2021

This works, but all files persisted are 403 or 404 replies from the upstream, no regular 200 replies, or the expected downloadable internet objects. What else I'm missing?

@vimagick
Copy link
Owner

HTTPS connections are not cached

@Alsan
Copy link
Author

Alsan commented Apr 14, 2021

Ok, I see. Is there anyway I can make it work as expected? I need it to cache everything, so that I can copy the cached object to offline server manually, or can you suggest me any other similar solution that archive this? Thanks a lot.

@vimagick
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants