304 response code for Googlebot?

I see in logs of the server - - [31/May/2019:10:05:04 +0200] “GET /url.html HTTP/1.0” 304 - “-” “Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)” - this ip belongs to cloudflare
does my server give out 304 response code to cloudflare? Or to Googlebot? How it work?

You get that address because you are not rewriting IP addresses -> https://support.cloudflare.com/hc/en-us/sections/200805497-Restoring-Visitor-IPs

Whether that really was Google is something we cant tell at this point any more. Then, 304 is a perfectly acceptable code.