Skip to content

Commit

Permalink
wget: rearrange config
Browse files Browse the repository at this point in the history
  • Loading branch information
dikiaap committed Apr 26, 2017
1 parent f3be2d4 commit fc12607
Showing 1 changed file with 16 additions and 26 deletions.
42 changes: 16 additions & 26 deletions .wgetrc
Original file line number Diff line number Diff line change
@@ -1,36 +1,26 @@
## From mathiasbynens
# Use the server-provided last modification date, if available
timestamping = on

# Do not go up in the directory structure when downloading recursively
no_parent = on

# Wait 60 seconds before timing out. This applies to all timeouts: DNS, connect and read. (The default read timeout is 15 minutes!)
timeout = 60

# Retry a few times when a download fails, but don’t overdo it. (The default is 20!)
# Retry a few times when a download fails.
tries = 3

# Retry even when the connection was refused
# Retry even if connection is refused.
retry_connrefused = on

# Use the last component of a redirection URL for the local file name
trust_server_names = on
# Don't re-retrieve files unless newer than local.
timestamping = on

# Follow FTP links from HTML documents by default
follow_ftp = on
# Print server response.
server_response = on

# Set all timeout values.
timeout = 60

# Add a `.html` extension to `text/html` or `application/xhtml+xml` files that lack one, or a `.css` extension to `text/css` files that lack one
# Save HTML/CSS documents with proper extensions.
adjust_extension = on

# Use UTF-8 as the default system encoding
# Disabled as it makes `wget` builds that don’t support this feature unusable.
# Does anyone know how to conditionally configure a wget setting?
# http://unix.stackexchange.com/q/34730/6040
# local_encoding = UTF-8
# Use the last component of a redirection URL for the local file name.
trust_server_names = on

# Don't ascend to the parent directory.
no_parent = on

# Ignore `robots.txt` and `<meta name=robots content=nofollow>`
# Setting this to off makes Wget not download /robots.txt file.
robots = off

# Print the HTTP and FTP server responses
server_response = on

0 comments on commit fc12607

Please sign in to comment.