Onion-Location header added
This commit is contained in:
parent
17ac128890
commit
40b67993e5
1 changed files with 6 additions and 2 deletions
|
@ -101,10 +101,14 @@ serverErrorReadFile e = H.toHtml $ "document.getElementById('body').innerHTML='S
|
||||||
++ "';"
|
++ "';"
|
||||||
|
|
||||||
shortCache :: ActionM ()
|
shortCache :: ActionM ()
|
||||||
shortCache = addHeader "Cache-Control" "max-age=21600"
|
shortCache = do
|
||||||
|
addHeader "Cache-Control" "max-age=21600"
|
||||||
|
addHeader "Onion-Location" "http://mmonkydr7laya5lsrtb4csa5tqlna62cj5qpjuvy726ti4xb3vznneid.onion"
|
||||||
|
|
||||||
noCache :: ActionM ()
|
noCache :: ActionM ()
|
||||||
noCache = addHeader "Cache-Control" "no-cache"
|
noCache = do
|
||||||
|
addHeader "Cache-Control" "no-cache"
|
||||||
|
addHeader "Onion-Location" "http://mmonkydr7laya5lsrtb4csa5tqlna62cj5qpjuvy726ti4xb3vznneid.onion"
|
||||||
|
|
||||||
embedJs :: Js -> H.Html
|
embedJs :: Js -> H.Html
|
||||||
embedJs js = H.script $ js
|
embedJs js = H.script $ js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue