Extravi / araa-search

A privacy-respecting, ad-free, self-hosted Google metasearch engine with strong security that offers full API support and utilizes Qwant for images, and DuckDuckGo for auto-complete.
https://araa.extravi.dev
GNU Affero General Public License v3.0
254 stars 24 forks source link

Add caching. #122

Closed amogusussy closed 10 months ago

amogusussy commented 10 months ago

When you refresh araa, the browser grabs everything (such as fonts, and css files). This PR changes it so that the browser will only request the data once every hour. I've chosen once an hour to allow for changes to the files.

This will make the experience with switching search types a lot nicer, and also decrease server load.

Extravi commented 10 months ago

thank you

Extravi commented 10 months ago

im removing this because it also caches the results in the browser and it results in bugs etc

Extravi commented 10 months ago

its a really bad idea to cache results in the browser or client it can result in lots of bugs

Extravi commented 10 months ago

also some image links expire etc so things are just going to break

Extravi commented 10 months ago

font caching and stuff is fine stuff it needs for the interface and javascript but anything that cashes results or result urls are bad

Extravi commented 10 months ago

i did not test or know that the pr cached results