Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mime Type Conflict #959

Closed
neilgee opened this issue Jun 5, 2020 · 4 comments
Closed

Mime Type Conflict #959

neilgee opened this issue Jun 5, 2020 · 4 comments

Comments

@neilgee
Copy link

neilgee commented Jun 5, 2020

I have an intermittent issue in local WordPress development whereby a mime type for CSS is not working and the CSS style borks, the server thinks it is 'text/html' instead of 'text/css' the layout is not correctly rendered, a simple refresh then fixes it - was wondering if there was anything I can try to prevent it happening - example https://share.getcloudapp.com/Z4uYezO0

@drbyte
Copy link
Contributor

drbyte commented Jun 5, 2020

Screen Shot 2020-06-05 at 5 43 09 PM

Why doesn't the .css file have a .css extension? In fact, why doesn't it have a filename at all?

@neilgee
Copy link
Author

neilgee commented Jun 5, 2020

It does , the actual full paths of the 2 files that end in those strings are...

/wp-content/uploads/bb-plugin/cache/4f731c9bf83fc03994cbb32c0aa1699b-layout-bundle.js?ver=2.3.2.5-1.3.1
/wp-content/uploads/bb-plugin/cache/89a9d88de2defe9a2dc47c44e58ee036-layout-bundle.css?ver=2.3.2.5-1.3.1

So randomly it truncates the URL by missing the full path and loads

https://tutorgeo.test/?ver=2.3.2.5-1.3.1

Spoke to a BB dev who said its probably a caching issue

@neilgee
Copy link
Author

neilgee commented Jun 12, 2020

The issue below may help me...

So, if you wish to customize it, note a simple trick with Valet:
All the ~/.config/valet/Nginx/. files get loaded inside the nginx http config section, which means you could drop a cache-dev.conf file in there with any directives you want for disabling caching.

#595

Looks like this may work for me, the files I want to exclude from caching appear at the same relative url on various sites ~/Sites/<sitename>/wp-content/uploads/bb-plugin/cache/*.css

How could I exclude that in a cache-dev.conf file

@driesvints
Copy link
Member

Hi there, we're cleaning up the Valet issue tracker and are moving all feature requests/support questions to the Discussions tab. We'll be using the issue tracker solely for bugs with Valet from now on. You're welcome to continue the discussion on in the Discussions tab. Thanks!

@laravel laravel locked and limited conversation to collaborators Dec 3, 2021
@driesvints driesvints converted this issue into discussion #1131 Dec 3, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants