This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

plakhin
plakhin

As I can see on fresh installation:
126f45ad1037d35ffd9f9ea4f433ee3d-1400176502.css - 141Kb
bc9904543bcf438d1b0ea0595bccee09-1400176503.js - 322Kb
And this files are not cacheable.

I think ~0.5Mb of non cacheable assets in fresh installation is too much.

Last updated

daftspunky
daftspunky

This is simply Bootstrap 3, in a development mode (not minified). Try switching on this in your config file (app/config/cms.php)

    /*
    |--------------------------------------------------------------------------
    | Determines if the asset minifcation is enabled.
    |--------------------------------------------------------------------------
    |
    | If the minifcation is enabled, combined assets are compressed (minified).
    | It is recommended to disable the minification during the development, and
    | enable it in the production mode.
    |
    */

    'enableAssetMinify' => false,
plakhin
plakhin

Thank you. And is there a way to make js and CSS cacheable?

daftspunky
daftspunky

Yes, further below you should see:

    /*
    |--------------------------------------------------------------------------
    | Determines if the asset caching is enabled.
    |--------------------------------------------------------------------------
    |
    | If the caching is enabled, combined assets are cached. If a asset file
    | is changed on the disk, the old file contents could be still saved in the cache.
    | To update the cache the back-end Clear Cache feature should be used. It is recommended
    | to disable the caching during the development, and enable it in the production mode.
    |
    */

    'enableAssetCache' => false,
emzero439
emzero439

This doesn't seem to be working. I've enabled 'enableAssetMinify' and my combined JS are not minified.

UPDATE: Nevermind, working now.

Last updated

hdaniel.llanos7802
hdaniel.llanos7802

'enableAssetMinify' => false, 'enableAssetCache' => false, I have a lot, to much time debugging the new css add into my project, obtober cms is a good tool except for the time that you need to expend trying to remove the css cache, I have one day working on the layout and still I'm not able to test css changes, because basically any change that I do is not reflected on the view. Please, can someone tell me how to remove the http://..host.../combine/hash.css on development mode ? Thanks !!

Scott
Scott

@hdaniel.llanos7802 once enableAssetCache is set to false your combined assets shouldn't be cached. It is most likely your browser that is doing the caching. If you're using a browser like Chrome or Firefox you can just do a hard reload to make sure you're getting the most recent copy.

If this fails to solve the problem, just clear the cache manually by running the artisan command php artisan cache:clear

Last updated

dshoreman
dshoreman

@hdaniel.llanos7802 The last post in this thread was nearly a year ago, if you have a different issue please create a new thread rather than reviving old ones. Thanks :)

Last updated

1-8 of 8

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.