Giter Site home page Giter Site logo

Comments (8)

dmolsen avatar dmolsen commented on May 31, 2024

@fStop -

Hrm... I'm having trouble recreating this issue in Safari 6 or Chrome 32. Sounds like a cache issue but it should still be loading correctly. If you let me know which browser you're using I'll fire up BrowserStack and see if I can track it down. Sorry.

from patternlab-php.

isGabe avatar isGabe commented on May 31, 2024

@dmolsen weird, the issue seems to have resolved itself. I was using Chrome 31 (Mac OS 10.8) FWIW.

I couldn't see how it would be a caching issue, since it was the actual content that was not loading, and not resources (CSS, JS, etc). Maybe turning it off and on took care of it :)

Great tool, BTW. Loving it. 🍻

from patternlab-php.

dmolsen avatar dmolsen commented on May 31, 2024

K. Sounds good. Any questions just drop 'em here. Appreciate the feedback :)

from patternlab-php.

mikes000 avatar mikes000 commented on May 31, 2024

@fStop I ran into a similar issue where things weren't updating or changes showing up. It turned out to be a caching issue and chrome would not let go of the cache even on a hard refresh. To get around this whenever working with pattern lab I set in chrome developer tools to disable caching when developer tools is open.

Open the developer tools for chrome and click the gear in the bottom right corner and check "Disable cache (while DevTools is open)" Now whenever you have the DEV tools open caching wont be an issue.

from patternlab-php.

bradfrost avatar bradfrost commented on May 31, 2024

Yeah this is something that's been an issue for me. It's also worth noting that Codekit has been increasingly buggy. I'm not sure if you're using something like that as well, but once I moved away from Codekit my caching issues have been better. That being said, we're aware of the caching issue and @dmolsen is on it in #43

from patternlab-php.

isGabe avatar isGabe commented on May 31, 2024

Yeah, I've been moving toward Grunt and away from CodeKit more lately. Codekit has always caused issues with live reload enabled, so I've never used that feature much.

It was weird and hard to get Grunt set up at first, but I've gotten more comfortable with it, and it just works. Plus I get to feel like a hacker on the command line.

Cache busting is a good idea with something like Pattern Lab. The thing I'm still wondering about here, though, is the fact that it was the actual content of the templates, and not the assets (CSS, JS, images) that were not refreshing in my case. That doesn't seem related to browser cache.

But as I said, the problem disappeared on its own, and everything has been working fine since.

from patternlab-php.

isGabe avatar isGabe commented on May 31, 2024

Interesting, I guess I was wrong and the content does get cached.

I saw the issue again when updating some of the pattern templates. The build succeeded and the html file for the pattern in /public/patterns would update, but the content at the url (/?p=molecules-logobar in my case) would not show the update. Clearing the cache in Chrome solved it.

from patternlab-php.

dmolsen avatar dmolsen commented on May 31, 2024

I've done the following:

  • added no cache meta tags to the style guide, view all, and pattern templates
  • each call to update the iframe source gets a time stamp added to it (e.g. ?1385830752106)

Hopefully these changes help. They're currently in dev branch and will be part of the 0.7.0 release. Learn more about it in #66.

from patternlab-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.