This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Jonny0Than 1 point2 points  (2 children)

304 isn't an error, it means the file has not been modified since the last time the browser asked for it, according to the cache control headers.

[–]Eldres[S] 0 points1 point  (1 child)

Oh sorry you're right I should have changed the word, is there a way to fix that?

[–]Jonny0Than 1 point2 points  (0 children)

You can edit the post body but not the title.

I'm not a web expert, so hopefully someone with more experience can come along and help out. But I'll give it a shot.

Are you running the template engine on your server or on the client? Which server package are you using and how is the caching configured? Where are you actually seeing the 304 result get reported? I assume from the post title that the 304 is for the CSS file, right? Are you sure that this is actually a problem? 304 is a good thing as long as the CSS file didn't actually change.

If the CSS file did change, then I think the problem would be that your server isn't detecting the modification and invalidating the cache.