Rusty
Rusty

Reputation: 1

How do I disable caching of a joomla folder using htaccess file

I have a joomla website for a classified site and the advert images are stored in the following directory /images/adverts/

I have applied image caching using the htaccess file for the site.

Is there a way to prevent caching of the adverts image folder ?

Upvotes: 0

Views: 1532

Answers (1)

Kev
Kev

Reputation: 454

You can add a .htaccess in that folder (/images/adverts/) in which you write:

Header set Cache-Control "max-age=1"

Upvotes: 1

Related Questions