Removing public option from htaccess Cache-Control

All is working fine. I added the following to my 000-default.conf

 # Leverage browser caching using mod_headers #
<IfModule mod_headers.c>
# One year for image files
<FilesMatch "\.(jpg|jpeg|gif|png|webp|svg+xmlZx-icon)$">
Header set Cache-Control max-age=31557600
</FilesMatch>

# One year for video files
<FilesMatch "\.(mp4|mpeg)$">
Header set Cache-Control max-age=31557600
</FilesMatch>

# One month for CSS, JavaScript
<FilesMatch "\.(css|x-javascript)$">
Header set Cache-Control max-age=2628000
</FilesMatch>

# One month for Others
<FilesMatch "\.(pdf|x-shockwave-flash)$">
Header set Cache-Control max-age=2628000
</FilesMatch>
</IfModule>
# End of Leverage browser caching using mod_headers #

And running these commands but and error massage is shown. I don’t think I’m going it correctly.
sudo a2enmod expires
sudo service apache2 restart