Mobile app version of vmapp.org
Login or Join
Moriarity557

: Cloudflare displaying cached CSS in-line? I recently enabled CloudFlare on my domain, and when I make HTML statements like this: <link href="css/main.css" rel="stylesheet" /> The CSS gets

@Moriarity557

Posted in: #Cache

I recently enabled CloudFlare on my domain, and when I make HTML statements like this:

<link href="css/main.css" rel="stylesheet" />


The CSS gets displayed in-line, like this:

<style>body{padding-top:40px}span.light{font-weight:lighter!important}span.title{font-size:60px;line-height:1;letter-spacing:-1px;color:inherit}</style>


When I update the file via FTP, the changes are not reflected, which leads me to believe that this is a caching issue.

Is this due to CloudFlare? If so, how do I disable the behavior?

EDIT I also came to the conclusion that caching is behind the behavior after being able to see changes in the page after re-naming the CSS file.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Moriarity557

2 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

I found that this wasn't a CloudFlare caching issue, it was caused by Google's mod_pagespeed enabled on my DreamHost account's configuration page.

The externally-referenced CSS files stopped appearing inline after disabling this addon.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme