Skip to content
SmartOptimizer is an open source PHP program that enhances your website performance by optimizing the front-end using techniques such as minifying, compression, caching and concatenation on demand.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
smartoptimizer Fixing security vulnerability reported by Francois Harvey (http://fra… Oct 31, 2010
.htaccess Adding support for .ico file type. Feb 1, 2010
README Updating version number Oct 31, 2010


SmartOptimizer v1.8
Author: Ali Farhadi (
Released under the terms of the GNU Public License.
See the GPL for details (

What is SmartOptimizer?
SmartOptimizer is a php program that enhances your website performance using
techniques such as minifying, compression, caching, concatenation and embedding.
The idea is based on yahoo performace rules (

SmartOptimizer Features
* SmartOptimizer Increases your website download speed by reducing the size of JavaScript and
  CSS files approximately up to 80% or even higher.
* Reduces count of http requests by combining js/css files together.
* Also reduces count of http requests by embedding css images inside css files.
* SmartOptimizer generates minified, compressed, combined and embedded files on the
  first request and caches them on the server and uses the cache on future requests.
* It doesn't embed duplicated urls (i.e. css sprites) in css files for better performance.
* It also knows to regenerate already cached files if the originals have been changed.
* SmartOptimizer handles browsers that doesn't support gzip encoding and sends them non-gzipped content.
* It also forces the browser to cache the files optionally forever or until they have not changed.
* SmartOptimizer removes Etag headers. (for better performance on clustered servers).
* It is easy to install, since it requires no code modifications whatsoever. (other than .htaccess)
* All the features is configurable using config file.

Installation Requirements
* PHP 4.3.0 or higher.
* Apache with mod_rewrite enabled.

Installation Instructions
1. Upload smartoptimizer folder to your website.
2. "smartoptimizer/cache" folder should be writable (in most cases 777 permission is needed).
3. Upload .htaccess file on the folder that smartoptimizer folder is placed, if there is no another htaccess file currently.
   Otherwise, Copy content of SmartOptimizer htaccess file and paste it inside your current htaccess at the beginning of the file.
4. It's ready. Enjoy it.

Bug reports
SmartOptimizer is in beta stage and needs a large scale testing specially for its css and js minifiers.
So any feedback is greatly appreciated.

Use the issue tracker at github for bug reports:
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.