B
B
bozuriciyu2019-12-29 16:50:47
css
bozuriciyu, 2019-12-29 16:50:47

Why is Cache Control not working?

I expect that the picture will not be downloaded again, and the status 304 will return. But no, it downloads again. Site behind ndinx and cloudflare. Headlines are coming. File static picture

Accept-Ranges: bytes
Age: 2560
Cache-Control: public, max-age=14400
CF-Cache-Status: HIT
CF-RAY: 54cc39fcd9b78ac0-KBP
Connection: keep-alive
Content-Disposition: inline; filename="2.webp"
Content-Length: 201688
Content-Type: image/webp
Date: Sun, 29 Dec 2019 13:47:33 GMT
Expires: Sun, 29 Dec 2019 14:04:53 GMT
Server: cloudflare
Vary: Accept, Accept-Encoding
X-Request-Id: hMVns9kTqcmSFKxBJTPFlu

The cache in the browser is not disabled. As you can see, Cache-Control has not expired, neither Expires. Why is it downloading?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Talyan, 2019-03-01
@fhntv09

Damn, my eyes are bleeding! doesn't say anything? You don't even need JavaScript knowledge - it says directly in words - Toggle Class. Add the menu_active class to the div with the menu class, and it will also toggle it. The background is gone because your paths are not registered to the background. Since you don't know how to write a relative path, write the full one.
I put my pictures on the background for you, guess how to register yours.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question