Unable to load image

restored GIF profile pictures (properly compressed this time)

8
Jump in the discussion.

No email address required.

nice you compress all profile pictures , surely your code is now top notch right?

ofcourse not because you still aren't caching shit. for example everytime you load any page you download the same 3 fonts again and again and again. 0,5 mb per pageview.

so yeah clean it up jannie, clean the source up, seems like someone made a dookie messie poppie in the cody , clean it up!

(also goodwork )

Jump in the discussion.

No email address required.

any idea how

Jump in the discussion.

No email address required.

after you GET something the server sends a https packet and in the header is the cache specified. it seems the cache controll header is malformed , you can easily check the response header with google chrome dev cowtools by going network-> click on resource.

for example after getting marseypartygif the response header is;

cache-control: no-cache

cache-control: public

cache-control: maxage=3600

cache-control: public

cache-control: maxage=3600

when it should be something like

cache-control: public, max-age=31536000

so look where you make the header and then fix it

i guess its there around line 100-112

https://github.com/Aevann1/Drama/blob/0bc22fbbfea8c575d3616e1b78287443bbe853aa/drama/routes/static.py

i really dont know any python and these frameworks so i cant help you further., hope it was helpful

Jump in the discussion.

No email address required.

alright thanks king, u have been very helpful

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.