mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[GH-ISSUE #442] [QUESTION] Why does a search query expiry when I move back to that page? #289
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#289
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arunsathiya on GitHub (Sep 28, 2021).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/442
When I make a search on Whoogle and visit a result, and when I move back to Whoogle using the back button on my browser, I see a message that the document has expired. It reads:
Is this something to fix within Whoogle or something to do with my browser?
@Stolz commented on GitHub (Sep 28, 2021):
For privacy reasons, by default Whoogle uses
POSTHTTP method to send the search requests. That way, your search terms are sent in the HTTP request body instead of the HTTP request URL. Usually the request URL ends up in the web server logs and in the browser historic records whereas request body does not. Hence usingPOSTmethod gives you more privacy.By default, Firefox (and other browsers) will refuse to reload pages that originated from a
POSTHTTP request, hence the error you are seeing.You can configure Whoogle to use
GETHTTP method instead ofPOST, which will give you less privacy but it will avoid theDocument Expiredmessage. To do so, simply setWHOOGLE_CONFIG_GET_ONLY=1config option.@arunsathiya commented on GitHub (Sep 28, 2021):
Thanks for sharing this, @Stolz! I'll leave things as they are now.
@diogogmatos commented on GitHub (Nov 11, 2022):
Hey, sry for bothering but I've been searching everywhere and I just can't figure out how to
"set WHOOGLE_CONFIG_GET_ONLY=1". I know you need to usewhoogle.envfile and uncomment that setting, I've done that. What I can't seem to do is"set WHOOGLE_DOTENV=1"to enable the use of whoogle.env. What does "set" mean? How do I "set" that variable? Should I add something to thewhoogle.servicefile? HELP (I'm running whoogle locally)