generallamp

Disable the server cache

If you are developing on top of an AMP Stack or customizing any Bitnami Stack, your files (like JavaScript files) may be cached by the server and even you modify them your changes will not appear to be applied.

In order to disable the cache in the server and let the files be served each time, disable PageSpeed for Apache and OPCache for PHP, enabled by default.

To disable PageSpeed, comment out the following lines in your httpd.conf (/opt/bitnami/apache/conf/httpd.conf)

#Include conf/pagespeed.conf
#Include conf/pagespeed_libraries.conf

To disable OPCache, change opcache.enable in your php.ini file and set it to 0 (/opt/bitnami/php/etc/php.ini)

Last modification December 21, 2022