mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-08-07 06:12:22 -04:00
Implemented page caching and cache control headers
This commit is contained in:
parent
913c7935c0
commit
b8e67721b8
4 changed files with 165 additions and 17 deletions
|
@ -72,6 +72,10 @@ def parse_line(line, state, url_delegate):
|
|||
if first_char == "\\":
|
||||
line = line[1:]
|
||||
|
||||
# Check for comments
|
||||
elif first_char == "#":
|
||||
return None
|
||||
|
||||
# Check for section heading reset
|
||||
elif first_char == "<":
|
||||
state["depth"] = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue