Caching 204 status code

nfn

New Member
#1
Hi

I have this in .htaccess

Code:
ExpiresByType image/x-icon A2592000
And in the rewrite conf I have setup this rule:

Code:
RewriteRule favicon\.ico$ - [L,R=204]
I was expecting that favicon would be cached, but is not.

Is the status code is 200, the .ico file os cached.

What do I need to do to make 204 status code cacheable?

Thanks
 

nfn

New Member
#3
Hi @Cold-Egg

I'm behind Cloudflare with cache everything and neither Litespeed header (directly) neither Cloudflare caches 204 responses.
Cf-cache-status is always miss.

If I set response header to 200 favicon is cached, so looks like 204 responses are not cacheable.
 
Last edited:

nfn

New Member
#4
Related to LS Wordpress Cache plugin, there is something I would like to understand.

In .htaccess all static files (images/js/css/ico) have 2592000 seconds cache, but headers show 604800
Where does this came from?
 
Top