battlefield-portal-community / bfportal.gg

A website that enables players to share Battlefield Portal Mods (Battlefield 2042). This repo serves its source code
http://bfportal.gg/
GNU General Public License v3.0
10 stars 6 forks source link

Add Cache headers for Cloud-flare to consume #219

Closed p0lygun closed 3 weeks ago

p0lygun commented 1 year ago

Cloudflare provides free caching service to all users, but Currently, we are not making use of it on the Frontend, this leads to more requests at the server and more CPU cycles.

we can add caching to Frontend by making use of the Cache-Control http header. In this task, you will

zefanjajobse commented 3 weeks ago

this is already implemented via cloudflare, all images use cloudflare cache and hit the cache correctly @MagneticNeedle

afbeelding