Support

Admin Tools

#22468 Audio files expiration

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Saturday, 16 May 2015 17:20 CDT

user72049
 Hi,

Thank you for a great extension. I have been writing my own .htaccess files so I am now using yours and comparing how I did all these years. ;)

I have one question (so far) about the "# Audio files expiration: 1 month after request" area. I added a couple of lines that I don't see in yours and would like your insight as to why I do or do not need these:

ExpiresByType audio/mp3 "now plus 1 month"
ExpiresByType audio/ogg "now plus 1 month"

Thank you,
Helen

nicholas
Akeeba Staff
Manager
audio/mp3 should be redundant. The correct MIME type for .mp3 files is audio/mpeg per RFC 3003. This is already included.

As for .ogg files, the correct MIME type is application/ogg per RFC 3534. So the only necessary addition to the .htaccess should be:

ExpiresByType application/ogg "now plus 1 month"

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user72049
Hi Nicholas,

Thank you for the answer and the links. I always remember better if I can read up on something.

I have 2 client sites that have audio files so I program both .mp3 and .ogg.

If I add manually the ogg expiration to the file that Admin Tools creates, then later make a change to the Admin Tools .htaccess backend and save again, will the ogg addition disappear?

Helen

user72049
I just tested this and manual additions do get removed upon saving.

Since you did not include this in the programming, is it something I should not worry about either?

nicholas
Akeeba Staff
Manager
We'll add the missing line for Ogg Vorbis files in the next release. As I said the MP3 files are already covered through the audio/mpeg rule. In the meantime you'll have to re-add the Ogg Vorbis line manually if you have .ogg files on your site. It stands to reason, if you don't have such files then you don't need a rule to cache the files you, um, don't have :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user72049
Thanks for your help, Nicholas! I will enjoy using your extension on all my clients' sites. :D

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!