Skip to content
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

Feature request: video/mov in .htaccess? #296

Closed
nijakobius opened this issue Nov 29, 2021 · 4 comments
Closed

Feature request: video/mov in .htaccess? #296

nijakobius opened this issue Nov 29, 2021 · 4 comments

Comments

@nijakobius
Copy link

nijakobius commented Nov 29, 2021

Wondering why there's no mention of .mov in https://github.com/h5bp/html5-boilerplate/blob/main/dist/.htaccess.

Is this missing on purpose? Otherwise it would be great to add it :)

@LeoColomb
Copy link
Member

Thanks for opening this issue @nielsjakob.
I would prefer to ask the opposite: why should mov files be mentioned here?
It is not missing on purpose, but should be added only on purpose.

@nijakobius
Copy link
Author

nijakobius commented Nov 29, 2021

Okay I could have been a bit more specific about where I feel mov is missing:

<IfModule mod_mime.c>
    ...
    AddType video/mp4 f4v f4p m4v mp4
    ...
</IfModule>

and

<IfModule mod_expires.c>
    ...
    ExpiresByType video/mp4 "access plus 1 month"
    ...
</IfModule>

I believe the idea is that when a user visits the page a second time, the video is still in their cache and doesn't have to be downloaded again.

@LeoColomb
Copy link
Member

My question was more regarding the use case for .mov files.
Is this specific file type something you use on the web, and then expect to be managed by a web server?

@nijakobius
Copy link
Author

Okay I looked into it and realised that I better user .mp4 and .webm.

Still wonder if it should be included, since it won't affect people not using .mov and it will help those who do use it.

On the other hand, if it was included I wouldn't have researched this further and would've continued to use .move :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants