Jump to content

cookieless domain


rareyush
 Share

Recommended Posts

There are a few discussions in the forums regarding this, but I don't think any of them gave a definite solution.

@teppo also created a module about 5 years ago for relocating assets. However, I am not sure regarding the compatibility with the latest processwire versions. https://github.com/teppokoivula/PageRenderRelocateAssets

You might also want to look at the AIOM+ module for processwire which has domain sharding (for CSS, LESS, JS, and html).

 

  • Like 1
Link to comment
Share on other sites

I don't want to start a discussion here, but imho cookieless domains are way overrated. If you use AIOM, gzip, use cache wisely, etc. chances are you won't see any noticeable difference.

 

  • Like 1
Link to comment
Share on other sites

  • 8 months later...

Hey, 

I have freshly installed the module and for some reason I get some issues which I don't understand.

As you can see below, after aiom/ the domain is cut off. Where is the dani?

GET https://www.danielholte.de/site/assets/aiom/elholte.de/site/templates/img/play_back.png 404 (Page Not Found)

This is how I've done:

<link rel="stylesheet" type="text/css" href="<?php echo AllInOneMinify::CSS(array('css/main-' .$style .'.css', 'css/grid.css', 'css/pm-icons.css', 'css/fontawesome.css', $config->urls->FieldtypeComments . 'comments.css', 'css/overwrite.css')); ?>">

<script src="<?php echo AllInOneMinify::JS(array('js/jquery.min.js', 'js/main.js', 'js/isotope.pkgd.min.js', 'js/jquery.magnific-popup.min.js', 'js/jquery.mousewheel.js', 'js/jquery.jscrollpane.min.js', $config->urls->FieldtypeComments .'comments.min.js')); ?>"></script>

This is such a strange issue, that I don't know where to start investigation.

Thanks in advance

 

PS: Just saw that my Post is totally wrong here. Sorry. Please move.

I think it must be related to ../

This is my original css:

.pm_menu_mobile_toggler {
        width: 27px;
        height: 22px;
        background: url("../img/icons-light/retina/pmicon-073.png") no-repeat center;
        background-size: 27px 22px;
        display: inline-block;
        position: relative;
        top: 6px;
    }

and this is what comes out:

.pm_menu_mobile_toggler {
        width: 27px;
        height: 22px;
        background: url("elholte.de/site/templates/img/icons-light/retina/pmicon-073.png") no-repeat center;
        background-size: 27px 22px;
        display: inline-block;
        position: relative;
        top: 6px;
    }

Allow Directory Traversal in Options is hooked.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...