Comments (8)
@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.
@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.
K. Sounds good. Any questions just drop 'em here. Appreciate the feedback :)
from patternlab-php.
@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.
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.
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.
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.
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)
- Gruntfile Configuration - Needs Updated? HOT 1
- Documentation for Upgrading from 1 -> 2 HOT 1
- Adding tabs to the UI (a la plugin-node-tab) HOT 2
- "The partial could not be found" when using styleModifier HOT 1
- PatternStates not working as expected HOT 5
- Best Practice - Laravel HOT 5
- Possible to add a space in a custom Pattern State name? HOT 1
- Using pattern-specific data when using 'View All'
- Documentation request: Viewing Patterns (connection refused error when viewing on other computers on the same network) HOT 1
- Serving patternlab doesn't seem to work correctly from a gulp shell task
- Adding multiple classes via styleModifier not working HOT 1
- Class '\PatternLab\TwigNamespaces\PatternLabListener' not found HOT 1
- Add favicon and touch icons to Pattern Lab?
- Is there a convention to integrating Vue components into Patternlab?
- Patterlab-php with Mustache starter-kit not Installing correctly
- Patternlab php not working with PHP 8.0 HOT 3
- Pulse rates
- Pattern Fluctuation
- Patternlab and PHP 8.1? HOT 1
- pattern-lab/core and its doctrine/collections dependency is not compatible with PHP 8.1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from patternlab-php.