tractorcow / silverstripe-dynamiccache

Simple on the fly caching of dynamic content for Silverstripe
39 stars 27 forks source link

Site breaks #66

Open hprata opened 6 years ago

hprata commented 6 years ago

all links break. CSS and JS requirements do Not load Site loads home page but without requirements and nothing else can be accessed. Not even /dev/* Did not parse stylesheet at '*****/font-awesome.min.css?m=1478192886' because non CSS MIME types are not allowed in strict mode.

the rewrite rule seems to not work RewriteRule .* dynamiccache/cache-main.php?url=%1&%{QUERY_STRING} [L]

tractorcow commented 6 years ago

Please try this and tell me if it gets your further. :)

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* dynamiccache/cache-main.php?url=%1 [QSA]
jonom commented 6 years ago

I've just tried this locally, CSS and JS load fine for me with either variant of the RewriteRule and are delivered with appropriate MIME types. @tractorcow just curious - what's different about the revised version? @hprata did the revised version fix the issue for you?

tractorcow commented 6 years ago

Well, one has the additional 2 x RewriteCond, and I'm not sure if @hprata's one does.

dhensby commented 6 years ago

seems out of date, worth closing?