Code Monkey home page Code Monkey logo

Comments (7)

Jacksgong avatar Jacksgong commented on August 27, 2024

Please check whether your FileDownloadListener#connected with the non nil ETag back.

from filedownloader.

franciscerio avatar franciscerio commented on August 27, 2024

I tried to download a video but the etag is always nil but if image not nil.

from filedownloader.

Jacksgong avatar Jacksgong commented on August 27, 2024

So sorry, ETag is carry back by the response's header, I think you should ask your back-end colleague for help.

ps: Support for Resume Breakpoint because ETag.

from filedownloader.

franciscerio avatar franciscerio commented on August 27, 2024

ohhh. i see. cool! I think all of the sample images have ETags. :)

Thanks!

from filedownloader.

Jacksgong avatar Jacksgong commented on August 27, 2024

Good luck. :)

from filedownloader.

franciscerio avatar franciscerio commented on August 27, 2024

Hi @Jacksgong does cache control matters? like public or private.

This is my error.

`response code error: 500,
request headers: If-Match: "asset-12c1031-3c834c-52c187443f040"
Range: bytes=723115-
Cache-Control: no-cache

response headers: Server: nginx/1.8.1
Date: Tue, 08 Mar 2016 03:03:07 GMT
Content-Type: text/html
Content-Length: 19229
Connection: keep-alive
Cache-Control: private, must-revalidate
Set-Cookie: laravel_session=eyJpdiI6ImtyVFZcL3dOU0d1XC9tTW92N2FDQzFRQT09IiwidmFsdWUiOiIranFFbUhXaHVwc1RMZVlWNWhQVmVhKzZjXC9TZFhTa3FoNzZSbVVXc1JXWW9pMnljT2l4eWV5dDdERFRVaDZmOTI2QjBHalNMdENzdXVadXk2T3psekE9PSIsIm1hYyI6IjE0OGNkOTA4Njg1NjA4Y2UzZjM0Yzc5MjU1OGMwNGZjNWIwY2YxNzdjMGY2OTYyZDA3YzZmNWQ0Y2VjMmUwNGMifQ%3D%3D; expires=Tue, 08-Mar-2016 05:03:07 GMT; Max-Age=7200; path=/; httponly
Last-Modified: Wed, 12 Feb 2014 19:04:52 GMT
Accept-Ranges: bytes
OkHttp-Sent-Millis: 1457406184805
OkHttp-Received-Millis: 1457406185253`

We tried cache control private but no luck. We are new in caching stuffs.

Thanks

from filedownloader.

Jacksgong avatar Jacksgong commented on August 27, 2024

The Cache-Control is just for OkHttp, and we already save the response content to our path, so we don't need and Cache by OkHttp.

P.S: response code error: 500 means: Remote Server Internal Error(Ref. HTTP Error 500 Internal server error ), Not our Application's fault.

from filedownloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.